nix/module.nix: change TMPDIR for nix daemon
This commit is contained in:
parent
179abee178
commit
fc711ffd25
1 changed files with 11 additions and 1 deletions
|
@ -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.
|
||||
# This makes a quite nice difference in battery life.
|
||||
systemd.services.nix-gc = {
|
||||
nix-gc = {
|
||||
unitConfig.ConditionACPower = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue