framenix: move nix build dir to tmpfs

This commit is contained in:
Trolli Schmittlauch 2025-07-06 14:23:57 +02:00
parent a6a4865722
commit 21b9b87e86

View file

@ -39,6 +39,17 @@ in
fsType = "vfat"; fsType = "vfat";
options = [ "discard" ]; options = [ "discard" ];
}; };
# nix/ lix build directory
# lix:
# > If you plan to use a tmpfs, we **strongly recommend** to set `mode=0755` as a mount option for that `tmpfs`, otherwise you are effectively reverting this mitigation.
"/nix/var/nix/builds" = {
device = "tmpfs";
fsType = "tmpfs";
options = [
"mode=0755"
"size=75%"
];
};
}; };
services.fstrim.enable = true; services.fstrim.enable = true;