Automatic garbage collection
This commit is contained in:
parent
d03913d61c
commit
3f058b5726
5 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
3
nixos_modules/automatic-garbage-collection.nix
Normal file
3
nixos_modules/automatic-garbage-collection.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
nix.gc = { automatic = true; options = "--delete-older-than 7d"; };
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue