From d5f9f16b55256964ea9f1f306c191d7086831ae1 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Thu, 3 Jul 2025 22:22:58 -0400 Subject: 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 --- hostnix/elmo/system.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'hostnix/elmo') 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)"; -- cgit v1.3.1