fix: hopefully this will stop it needing to rebuild so often
This commit is contained in:
parent
351f6b22da
commit
54529e0d21
1 changed files with 9 additions and 7 deletions
|
@ -55,14 +55,16 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/Storage_optimization
|
# https://nixos.wiki/wiki/Storage_optimization
|
||||||
gc = {
|
# gc = {
|
||||||
automatic = true;
|
# automatic = true;
|
||||||
dates = "weekly";
|
# dates = "weekly";
|
||||||
options = "--delete-older-than 30d";
|
# options = "--delete-older-than 30d";
|
||||||
};
|
# };
|
||||||
|
|
||||||
|
# to free up to 10GiB whenever there is less than 1GiB left
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
min-free = ${toString (100 * 1024 * 1024)}
|
min-free = ${toString (1024 * 1024 * 1024)}
|
||||||
max-free = ${toString (1024 * 1024 * 1024)}
|
max-free = ${toString (1024 * 1024 * 1024 * 10)}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue