This commit is contained in:
2026-01-09 01:41:57 +08:00
parent c1d1b12a26
commit edb0343046
7 changed files with 232 additions and 8 deletions
+45
View File
@@ -0,0 +1,45 @@
{
config,
pkgs,
lib,
...
}: {
nix = {
enable = false;
settings = {
substituters = [
"https://cache.nixos.org/"
"https://cache.iog.io"
"https://haskell-language-server.cachix.org"
"https://nix-community.cachix.org"
];
trusted-users = ["@admin"];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"haskell-language-server.cachix.org-1:juFfHrwkOxqIOZShtC4YC1uT1bBcq2RSvC7OMKx0Nz8="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
experimental-features = ["ca-derivations" "nix-command" "flakes"];
keep-outputs = true;
keep-derivations = true;
max-jobs = 32;
cores = 0;
http-connections = 64;
download-buffer-size = 134217728; # 128 MB
};
# optimise.automatic = true;
package = pkgs.nixVersions.latest;
};
nix.extraOptions =
''
accept-flake-config = true
''
+ lib.optionalString (pkgs.system == "aarch64-darwin") ''
extra-platforms = x86_64-darwin aarch64-darwin
'';
}