45 lines
1.6 KiB
Nix
45 lines
1.6 KiB
Nix
{
|
||
nix = {
|
||
settings = {
|
||
auto-optimise-store = true;
|
||
allowed-users = ["@wheel"];
|
||
trusted-users = ["root" "@wheel"];
|
||
system-features = ["recursive-nix"];
|
||
substituters = [
|
||
"https://nix-config.cachix.org"
|
||
"https://nix-community.cachix.org"
|
||
];
|
||
trusted-public-keys = [
|
||
"nix-config.cachix.org-1:Vd6raEuldeIZpttVQfrUbLvXJHzzzkS0pezXCVVjDG4="
|
||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||
];
|
||
cores = 0;
|
||
max-jobs = "auto";
|
||
};
|
||
daemonCPUSchedPolicy = "batch";
|
||
daemonIOSchedPriority = 5;
|
||
distributedBuilds = true;
|
||
extraOptions = ''
|
||
builders-use-substitutes = true
|
||
experimental-features = nix-command flakes recursive-nix
|
||
flake-registry = /etc/nix/registry.json
|
||
'';
|
||
optimise.automatic = true;
|
||
gc.automatic = true;
|
||
};
|
||
|
||
# Copy the NixOS configuration file and link it from the resulting system
|
||
# (/run/current-system/configuration.nix). This is useful in case you
|
||
# accidentally delete configuration.nix.
|
||
# breaks flake based building
|
||
# system.copySystemConfiguration = true;
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "23.05"; # Did you read the comment?
|
||
}
|