.interval options exist in Darwin, only to tell you that you can not use them.
21 lines
322 B
Nix
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;
|
|
};
|
|
};
|
|
}
|