added automatic garbage collect
This commit is contained in:
parent
fe70a62430
commit
d4f3f586c6
2 changed files with 10 additions and 0 deletions
9
hosts/common/garbage-collect.nix
Normal file
9
hosts/common/garbage-collect.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "04:30";
|
||||
persistent = true;
|
||||
options = "--delete-older-than 10d";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue