diff --git a/flake.nix b/flake.nix index 540babc..7ac4a94 100644 --- a/flake.nix +++ b/flake.nix @@ -217,7 +217,7 @@ stashy-sd = inputs.nixos-generators.nixosGenerate { system = "aarch64-linux"; - modules = [ ./machines/stashy ]; + modules = [ ./machines/stashy inputs.nixos-hardware.nixosModules.raspberry-pi-4 ]; specialArgs = { inherit inputs; }; format = "sd-aarch64"; }; diff --git a/machines/stashy/default.nix b/machines/stashy/default.nix index b69d97d..3f0a39d 100644 --- a/machines/stashy/default.nix +++ b/machines/stashy/default.nix @@ -115,7 +115,9 @@ }; boot.tmp = { - useTmpfs = true; + # Not using tmpfs as it causes nixos-generators to eat + # RAM like a furious pete. + useTmpfs = false; cleanOnBoot = true; };