perf: make nix substitutions faster

This commit is contained in:
Moritz Böhme 2025-01-22 09:34:37 +01:00
parent 57a9709745
commit 0e103b7e10
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
2 changed files with 9 additions and 9 deletions

View file

@ -68,13 +68,17 @@ in
settings = {
substituters = [
"https://cache.nixos.org/"
"https://cache.nixos.org?priority=1"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
trusted-users = [ "root" "@wheel" ];
# https://bmcgee.ie/posts/2023/12/til-how-to-optimise-substitutions-in-nix/
http-connections = 128;
max-substitution-jobs = 128;
};
};
};