Automatic garbage collection

This commit is contained in:
Filippo Berto 2022-08-06 14:18:02 +02:00
parent d03913d61c
commit 3f058b5726
5 changed files with 6 additions and 6 deletions

View file

@ -56,6 +56,7 @@
odinBaseModules = [
{ nixpkgs = nixpkgsSettings; }
./nixos_modules/automatic-garbage-collection.nix
./odin/hardware-configuration.nix
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-laptop
@ -65,6 +66,7 @@
thorBaseModules = [
{ nixpkgs = nixpkgsSettings; }
./nixos_modules/automatic-garbage-collection.nix
./thor/hardware-configuration.nix
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-pc-ssd
@ -73,6 +75,7 @@
lokiBaseModules = [
{ nixpkgs = nixpkgsSettings; }
./nixos_modules/automatic-garbage-collection.nix
./loki/hardware-configuration.nix
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-ssd

View file

@ -337,7 +337,6 @@ with lib;
package = pkgs.nixFlakes;
extraOptions = optionalString (config.nix.package == pkgs.nixFlakes)
"experimental-features = nix-command flakes";
gc.automatic = true;
};
system.autoUpgrade = {

View file

@ -0,0 +1,3 @@
{
nix.gc = { automatic = true; options = "--delete-older-than 7d"; };
}

View file

@ -236,10 +236,6 @@ with lib;
package = pkgs.nixFlakes;
extraOptions = lib.optionalString (config.nix.package == pkgs.nixFlakes)
"experimental-features = nix-command flakes";
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
};
# This value determines the NixOS release from which the default

View file

@ -173,7 +173,6 @@ with lib;
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
gc.automatic = true;
};
system.stateVersion = "21.05"; # Did you read the comment?