diff --git a/flake.nix b/flake.nix index 4aa710b..60a0531 100644 --- a/flake.nix +++ b/flake.nix @@ -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 "$@" ''; diff --git a/modules/utils.nix b/modules/utils.nix index 91940e7..befd4bf 100644 --- a/modules/utils.nix +++ b/modules/utils.nix @@ -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 ]; }