Run nix gc weekly
This commit is contained in:
parent
8c1c1e864b
commit
33ba5078e7
4 changed files with 15 additions and 0 deletions
12
config/common/configuration/nix.nix
Normal file
12
config/common/configuration/nix.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
|
||||
# Configuration options for the nix package manager
|
||||
{
|
||||
nix.gc = {
|
||||
# Run garbage collection automatically
|
||||
automatic = true;
|
||||
# Run it once a week
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue