From 4f6256d08d6e907071e770315fd5c77293e590c2 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Thu, 6 Oct 2022 11:49:27 +0100 Subject: [PATCH] nixos/common: Make Nix daemon's TMPDIR /nix/tmp --- nixos/modules/common.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/common.nix b/nixos/modules/common.nix index 3b596d9..c732a11 100644 --- a/nixos/modules/common.nix +++ b/nixos/modules/common.nix @@ -184,7 +184,11 @@ in }; systemd = { + tmpfiles.rules = [ + "d /nix/tmp 0775 root nixbld 24h" + ]; services = { + nix-daemon.environment.TMPDIR = "/nix/tmp"; netdata = mkIf config.services.netdata.enable { # python.d plugin script does #!/usr/bin/env bash path = with pkgs; [ bash ];