nix/module.nix: change TMPDIR for nix daemon

This commit is contained in:
Charlie Root 2024-09-22 00:19:44 +02:00
commit fc711ffd25

View file

@ -146,9 +146,19 @@ in {
}; };
}; };
systemd.services = {
# WE DONT WANT TO BUILD STUFF ON TMPFS
# ITS NOT A GOOD IDEA
nix-daemon = {
environment.TMPDIR = "/var/tmp";
};
# Do not run garbage collection on AC power. # Do not run garbage collection on AC power.
# This makes a quite nice difference in battery life. # This makes a quite nice difference in battery life.
systemd.services.nix-gc = { nix-gc = {
unitConfig.ConditionACPower = true; unitConfig.ConditionACPower = true;
}; };
};
} }