32 lines
669 B
Nix
32 lines
669 B
Nix
{ lib, options, ... }:
|
|
{
|
|
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 (options.nix.optimise ? dates) {
|
|
# NixOS
|
|
dates = lib.mkDefault "00:45";
|
|
}
|
|
// lib.optionalAttrs (options.nix.optimise ? interval) {
|
|
# Darwin
|
|
interval = lib.mkDefault {
|
|
Hour = 0;
|
|
Minute = 45;
|
|
};
|
|
};
|
|
}
|