aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/core
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-04-16 23:44:15 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-04-16 23:44:15 -0700
commit757c411eae1d75d2e9e4e003de1635716f65437d (patch)
tree475112f90ae96dd767ed30e5cc4e8fab32006248 /hosts/common/core
parentb92a73e96917c84ef300012ccd663ba2cac6dac7 (diff)
downloadnix-757c411eae1d75d2e9e4e003de1635716f65437d.tar
nix-757c411eae1d75d2e9e4e003de1635716f65437d.tar.gz
nix-757c411eae1d75d2e9e4e003de1635716f65437d.tar.bz2
nix-757c411eae1d75d2e9e4e003de1635716f65437d.tar.lz
nix-757c411eae1d75d2e9e4e003de1635716f65437d.tar.xz
nix-757c411eae1d75d2e9e4e003de1635716f65437d.tar.zst
nix-757c411eae1d75d2e9e4e003de1635716f65437d.zip
Workaround annoying TMPDIR handling
Diffstat (limited to '')
-rw-r--r--hosts/common/core/nix.nix9
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" ];