Skip to content

Commit

Permalink
Disable tmpfs for /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Oct 27, 2024
1 parent b0174eb commit b93ca4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
Expand Down
4 changes: 3 additions & 1 deletion machines/stashy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit b93ca4c

Please sign in to comment.