tomato/modules/gc/default.nix
2021-04-27 22:47:09 +00:00

15 lines
306 B
Nix

{
nix = {
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
extraOptions = ''
min-free = ${toString (100*1024*1024)} # 100mb
max-free = ${toString (1024*1024*1024)} # free to 1gb free
'';
};
}