add automatic nix store garbage collection
This commit is contained in:
parent
250563445b
commit
32f04d5e47
1 changed files with 10 additions and 1 deletions
|
|
@ -5,7 +5,16 @@ in
|
|||
{
|
||||
config = lib.mkIf config.${feature}.enable {
|
||||
nix = {
|
||||
optimise.automatic = true;
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 20d";
|
||||
persistent = true;
|
||||
};
|
||||
optimise = {
|
||||
automatic = true;
|
||||
persistent = true;
|
||||
};
|
||||
settings = {
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue