Add garabage collection #7
@@ -11,6 +11,7 @@
|
||||
../modules/programs.nix
|
||||
../modules/gaming.nix
|
||||
../modules/obs-studio.nix
|
||||
../modules/garbage-collection.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
||||
12
systems/modules/garbage-collection.nix
Normal file
12
systems/modules/garbage-collection.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
nix = {
|
||||
settings.auto-optimise-store = true;
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user