1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: use new nix options

This commit is contained in:
2022-07-19 22:00:36 +02:00
parent fcdac38986
commit f9f17b59a7
5 changed files with 17 additions and 15 deletions

View File

@@ -9,14 +9,16 @@
nix = {
package = pkgs.nixUnstable;
extraOptions = "experimental-features = nix-command flakes";
binaryCaches = [
"http://cache.prism.r"
"https://cache.nixos.org/"
];
binaryCachePublicKeys = [
"cache.prism-1:+S+6Lo/n27XEtvdlQKuJIcb1yO5NUqUCE2lolmTgNJU="
"cache.prism-2:YwmCm3/s/D+SxrPKN/ETjlpw/219pNUbpnluatp6FKI="
"hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="
];
settings = {
substituters = [
"http://cache.prism.r"
"https://cache.nixos.org/"
];
trusted-public-keys = [
"cache.prism-1:+S+6Lo/n27XEtvdlQKuJIcb1yO5NUqUCE2lolmTgNJU="
"cache.prism-2:YwmCm3/s/D+SxrPKN/ETjlpw/219pNUbpnluatp6FKI="
"hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="
];
};
};
}

View File

@@ -19,9 +19,9 @@ in {
promptColours.success = "cyan";
};
nix = {
buildCores = 1;
maxJobs = 2;
nix.settings = {
cores = 1;
max-jobs = 2;
};
environment.systemPackages = [pkgs.minecraft];

View File

@@ -42,6 +42,6 @@
zramSwap.enable = false;
nix.maxJobs = lib.mkDefault 4;
nix.settings.max-jobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}

View File

@@ -29,5 +29,5 @@
swapDevices = [];
zramSwap.enable = true;
nix.maxJobs = lib.mkDefault 2;
nix.settings.max-jobs = lib.mkDefault 2;
}

View File

@@ -32,6 +32,6 @@
swapDevices = [{device = "/dev/disk/by-label/swap";}];
nix.maxJobs = lib.mkDefault 4;
nix.settings.max-jobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}