Add garabage collection
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
../modules/programs.nix
|
../modules/programs.nix
|
||||||
../modules/gaming.nix
|
../modules/gaming.nix
|
||||||
../modules/obs-studio.nix
|
../modules/obs-studio.nix
|
||||||
|
../modules/garbage-collection.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
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