mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
nixos: enable automatic GC
This commit is contained in:
parent
9621238657
commit
adf6d0b994
1 changed files with 11 additions and 0 deletions
|
@ -107,6 +107,17 @@ in {
|
|||
unstable.corerad
|
||||
];
|
||||
|
||||
# Automatic Nix GC.
|
||||
nix = {
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
extraOptions = ''
|
||||
min-free = ${toString (500 * 1024 * 1024)}
|
||||
'';
|
||||
};
|
||||
|
||||
services = {
|
||||
apcupsd = { enable = true; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue