Files
nix/modules/nix-gc.nix
Artem Sheremet bb0ce9ddd3 Use isDarwin rather than checking if option exists
.interval options exist in Darwin, only to tell you that you can
not use them.
2026-05-17 14:20:49 +00:00

21 lines
322 B
Nix

{
lib,
pkgs,
...
}:
{
nix.gc = {
automatic = true;
options = "--delete-older-than 60d";
}
// lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
dates = lib.mkDefault "00:15";
}
// lib.optionalAttrs pkgs.stdenv.isDarwin {
interval = lib.mkDefault {
Hour = 0;
Minute = 15;
};
};
}