parent
f037d1dd80
commit
2637817c9c
20 changed files with 8 additions and 12 deletions
13
hosts/cl-00-00/system/configuration/gc.nix
Executable file
13
hosts/cl-00-00/system/configuration/gc.nix
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
{ ...
|
||||
}:
|
||||
|
||||
{
|
||||
nix.gc = {
|
||||
# Enable automatic garbage collection
|
||||
automatic = true;
|
||||
# Run daily at 03:00 AM
|
||||
dates = "03:00";
|
||||
# Keep only the latest generations (safety net for rollbacks)
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue