mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
15 lines
319 B
Nix
15 lines
319 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.custom.services.gc.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.custom.services.gc.enable {
|
|
programs.nh = {
|
|
enable = true;
|
|
clean = {
|
|
enable = true;
|
|
dates = "weekly";
|
|
extraArgs = "--keep 10 --keep-since 7d";
|
|
};
|
|
};
|
|
};
|
|
}
|