diff options
Diffstat (limited to 'hosts/common/core/nix.nix')
-rw-r--r-- | hosts/common/core/nix.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hosts/common/core/nix.nix b/hosts/common/core/nix.nix index 587bac6..dfcbd5c 100644 --- a/hosts/common/core/nix.nix +++ b/hosts/common/core/nix.nix @@ -1,5 +1,14 @@ { inputs, lib, ... }: { + + # work around very annoying TMPDIR handling + # see: https://github.com/NixOS/nix/issues/7154 + boot.tmp.useTmpfs = true; + systemd.services."nix-daemon".environment.TMPDIR = "/nix/tmp"; + systemd.tmpfiles.rules = [ + "d /nix/tmp 770 root nixbld" + ]; + nix = { settings = { trusted-users = [ "root" "@wheel" ]; |