summaryrefslogtreecommitdiff
path: root/hostnix/elmo/system.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2025-07-03 22:22:58 -0400
committerJoe Mou <dev@mou.fo>2025-09-02 12:13:44 -0400
commitd5f9f16b55256964ea9f1f306c191d7086831ae1 (patch)
tree2db26b877d3945890a816bcda9646ae5de60e784 /hostnix/elmo/system.nix
parent97e0e981f9c568cbdce2992a5b1815265dea8f05 (diff)
Properly set nix build-dir
We had been setting TMPDIR for nix-daemon, but nixos-rebuild does not use that. Use the newer build-dir setting instead. See https://github.com/NixOS/nixpkgs/issues/293114#issuecomment-2663470083
Diffstat (limited to 'hostnix/elmo/system.nix')
-rw-r--r--hostnix/elmo/system.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/hostnix/elmo/system.nix b/hostnix/elmo/system.nix
index 869a1db..fe0ddb0 100644
--- a/hostnix/elmo/system.nix
+++ b/hostnix/elmo/system.nix
@@ -5,6 +5,7 @@
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
+ nix.settings.build-dir = "/var/tmp";
time.timeZone = "America/New_York";
@@ -23,11 +24,6 @@
};
};
- # https://github.com/NixOS/nixpkgs/issues/54707#issuecomment-1132907191
- systemd.services.nix-daemon = {
- environment.TMPDIR = "/var/tmp";
- };
-
# https://nixos.wiki/wiki/Hardware/Apple#Auto_Restart
systemd.services.enable-autorestart = {
description = "Boot after power failure (server mode)";