mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 11:02:03 +00:00
25 lines
353 B
Nix
25 lines
353 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.nmasur.presets.services.nix-daemon;
|
|
in
|
|
|
|
{
|
|
|
|
options.nmasur.presets.services.nix-daemon.enable = lib.mkEnableOption "Nix garbage collection";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.nix-daemon.enable = true;
|
|
|
|
nix.gc.interval = {
|
|
Hour = 12;
|
|
Minute = 15;
|
|
Day = 1;
|
|
};
|
|
};
|
|
}
|