From 21b9b87e86447ee2863f5cc6ff50ed025101f4a5 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Sun, 6 Jul 2025 14:23:57 +0200 Subject: [PATCH] framenix: move nix build dir to tmpfs --- hosts/framenix/storage.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/framenix/storage.nix b/hosts/framenix/storage.nix index 7fb2801..8acb7fd 100644 --- a/hosts/framenix/storage.nix +++ b/hosts/framenix/storage.nix @@ -39,6 +39,17 @@ in fsType = "vfat"; 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;