Use extra- for substituters and trusted-public-keys
From the nix manual: > A configuration setting usually overrides any previous value. However, > for settings that take a list of items, you can prefix the name of the > setting by extra- to append to the previous value. Reviewed-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
parent
86b7032bbb
commit
1ef6f9a2bb
@ -4,7 +4,7 @@
|
|||||||
# Don't add hut as a cache to itself
|
# Don't add hut as a cache to itself
|
||||||
assert config.networking.hostName != "hut";
|
assert config.networking.hostName != "hut";
|
||||||
{
|
{
|
||||||
substituters = [ "http://hut/cache" ];
|
extra-substituters = [ "http://hut/cache" ];
|
||||||
trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ];
|
extra-trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,8 +29,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
substituters = [ "https://jungle.bsc.es/cache" ];
|
extra-substituters = [ "https://jungle.bsc.es/cache" ];
|
||||||
trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ];
|
extra-trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable performance governor
|
# Enable performance governor
|
||||||
|
|||||||
@ -38,8 +38,8 @@ enable it for all builds in the system.
|
|||||||
```nix
|
```nix
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
substituters = [ "https://jungle.bsc.es/cache" ];
|
extra-substituters = [ "https://jungle.bsc.es/cache" ];
|
||||||
trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ];
|
extra-trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -60,8 +60,8 @@ Note: you'll have to be a trusted user.
|
|||||||
If using nix outside of NixOS, you'll have to update `/etc/nix/nix.conf`
|
If using nix outside of NixOS, you'll have to update `/etc/nix/nix.conf`
|
||||||
|
|
||||||
```
|
```
|
||||||
# echo "substituters = https://jungle.bsc.es/cache" >> /etc/nix/nix.conf
|
# echo "extra-substituters = https://jungle.bsc.es/cache" >> /etc/nix/nix.conf
|
||||||
# echo "trusted-public-keys = jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" >> /etc/nix/nix.conf
|
# echo "extra-trusted-public-keys = jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" >> /etc/nix/nix.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
### Hint in flakes
|
### Hint in flakes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user