This commit is contained in:
parent
8c9fcd921d
commit
3f347427ed
2 changed files with 14 additions and 2 deletions
|
@ -98,11 +98,12 @@
|
|||
|
||||
runtimeInputs = [ pkgs.qemu_kvm ];
|
||||
|
||||
# -snapshot \
|
||||
text = ''
|
||||
set -ex
|
||||
qemu-system-x86_64 \
|
||||
-smp 4 -m 2048 -machine q35,accel=kvm \
|
||||
-smp 4 -m 4096 -machine q35,accel=kvm \
|
||||
-bios ${pkgs.OVMF.fd}/FV/OVMF.fd \
|
||||
-snapshot \
|
||||
-display none \
|
||||
-serial stdio "$@"
|
||||
'';
|
||||
|
|
|
@ -9,10 +9,21 @@ let
|
|||
systemd-sysupdate --verify=no
|
||||
systemd-sysupdate --verify=no update --reboot
|
||||
'';
|
||||
|
||||
patos-install = pkgs.writeShellApplication {
|
||||
name = "patos-install";
|
||||
text = ''
|
||||
set -xeuo pipefail
|
||||
curl -s https://images.dl.patagia.dev/patos/patos_0.0.1.raw.zst |
|
||||
zstdcat |
|
||||
dd of=/dev/sdb status=progress bs=4M
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
# pkgs.ncdu
|
||||
patos-install
|
||||
script
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue