feature(boot): attatch /tmp to tmpfs, but keep nix build in /var/tmp

This commit is contained in:
2026-10-02 16:39:53 +02:00
parent 3e0e1d48f9
commit 6a080b2319
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -24,6 +24,12 @@
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.consoleLogLevel = 2;
# /tmp in RAM, nix builds go to /var/tmp instead (see settings.nix)
boot.tmp = {
useTmpfs = true;
tmpfsSize = "50%";
};
# Add boot-related packages
environment.systemPackages = with pkgs; [
efibootmgr