gc: only run gc monthly

This commit is contained in:
Leonardo Eugênio 2023-11-23 12:37:15 -03:00
parent b8ee69c66b
commit d0d7d7f930
2 changed files with 5 additions and 1 deletions

View file

@ -45,7 +45,11 @@
services.flatpak.enable = true; services.flatpak.enable = true;
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
virtualisation.docker.autoPrune.enable = true; virtualisation.docker.autoPrune.enable = true;
virtualisation.docker.autoPrune.dates = "monthly";
virtualisation.docker.autoPrune.flags = [ "--all --volumes" ]; virtualisation.docker.autoPrune.flags = [ "--all --volumes" ];
programs.extra-container.enable = true;
programs.firejail.enable = true; programs.firejail.enable = true;
security.rtkit.enable = true; security.rtkit.enable = true;

View file

@ -7,7 +7,7 @@
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
gc = { gc = {
automatic = true; automatic = true;
dates = "weekly"; dates = "monthly";
options = "--delete-older-than 7d"; options = "--delete-older-than 7d";
}; };
optimise.automatic = true; optimise.automatic = true;