Files
nix/modules/nix-settings.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

34 lines
627 B
Nix

{
lib,
pkgs,
...
}:
{
nix.settings = {
extra-experimental-features = [
"nix-command"
"flakes"
];
trusted-users = [ "@wheel" ];
# RPi builds can be slow due to compiling via binfmt.
download-buffer-size = 1 * 1024 * 1024 * 1024;
};
nix.optimise = {
# Instead of nix.settings.auto-optimise-store, which adds overhead to each
# build.
automatic = true;
}
// lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
dates = lib.mkDefault "00:45";
}
// lib.optionalAttrs pkgs.stdenv.isDarwin {
interval = lib.mkDefault {
Hour = 0;
Minute = 45;
};
};
}