Add custom Nix cache to Nix configs
This commit is contained in:
parent
0ca615a389
commit
1b67ac1da0
@ -12,6 +12,8 @@ in
|
||||
NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf"
|
||||
''
|
||||
experimental-features = nix-command flakes ca-derivations
|
||||
substituters = https://nix-cache.nul.ie https://cache.nixos.org
|
||||
trusted-public-keys = ${lib.my.nix.cacheKey}
|
||||
'');
|
||||
|
||||
INSTALLER_SSH_OPTS = "-i .keys/deploy.key";
|
||||
|
@ -228,6 +228,15 @@ in
|
||||
exact = true;
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
substituters = [
|
||||
"https://nix-cache.nul.ie"
|
||||
"https://cache.nixos.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
lib.my.nix.cacheKey
|
||||
];
|
||||
};
|
||||
};
|
||||
})
|
||||
(mkIf config.my.isStandalone {
|
||||
|
@ -48,6 +48,13 @@ in
|
||||
settings = {
|
||||
trusted-users = [ "@wheel" ];
|
||||
experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
|
||||
substituters = [
|
||||
"https://nix-cache.nul.ie"
|
||||
"https://cache.nixos.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
lib.my.nix.cacheKey
|
||||
];
|
||||
};
|
||||
registry = {
|
||||
pkgs = {
|
||||
|
Loading…
Reference in New Issue
Block a user