Files
nix/modules/nix-settings.nix
Artem Sheremet 7fdd373d58 Remove wheel from trusted-users
We don't need to use any trusted-users special privileges in daily nix
work, and escalating privileges can be done via sudo
2026-06-19 10:48:30 +00:00

32 lines
592 B
Nix

{
lib,
pkgs,
...
}:
{
nix.settings = {
extra-experimental-features = [
"nix-command"
"flakes"
];
# 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;
};
};
}