mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
12 lines
319 B
Nix
12 lines
319 B
Nix
{ lib, config, ... }:
|
|
{
|
|
options.swarselsystems.modules.gc = lib.mkEnableOption "garbage collection config";
|
|
config = lib.mkIf config.swarselsystems.modules.gc {
|
|
nix.gc = {
|
|
automatic = true;
|
|
randomizedDelaySec = "14m";
|
|
dates = "weekly";
|
|
options = "--delete-older-than 10d";
|
|
};
|
|
};
|
|
}
|