added automatic garbage collect
This commit is contained in:
parent
fe70a62430
commit
d4f3f586c6
2 changed files with 10 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./autoupdate.nix
|
./autoupdate.nix
|
||||||
|
./garbage-collect.nix
|
||||||
];
|
];
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
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
Reference in a new issue