2023-02-27 03:56:37 +01:00
|
|
|
|
{
|
|
|
|
|
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"
|
2023-03-08 14:11:46 +01:00
|
|
|
|
"https://hyprland.cachix.org"
|
2023-02-27 03:56:37 +01:00
|
|
|
|
];
|
|
|
|
|
trusted-public-keys = [
|
|
|
|
|
"nix-config.cachix.org-1:Vd6raEuldeIZpttVQfrUbLvXJHzzzkS0pezXCVVjDG4="
|
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
2023-03-08 14:11:46 +01:00
|
|
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
2023-02-27 03:56:37 +01:00
|
|
|
|
];
|
|
|
|
|
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?
|
|
|
|
|
}
|