feat(flake): add nix-community cachix to nix substituters
Also sets substituters on flake.nix's `nixConfig` in addition to `nixosConfiguration`s `nix.settings`.
This commit is contained in:
parent
e8e8ffe166
commit
4f22b0857d
2 changed files with 22 additions and 13 deletions
system
|
@ -1,4 +1,4 @@
|
|||
{ lib, inputs, ... }:
|
||||
{ lib, inputs, nixConfig, ... }:
|
||||
|
||||
let flakes = lib.filterAttrs (name: value: value ? outputs) inputs;
|
||||
in {
|
||||
|
@ -11,14 +11,8 @@ in {
|
|||
nix.settings = {
|
||||
trusted-users = [ "@wheel" ];
|
||||
auto-optimise-store = true;
|
||||
substituters = [
|
||||
"https://felschr.cachix.org"
|
||||
"https://wurzelpfropf.cachix.org" # ragenix
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"felschr.cachix.org-1:raomy5XA2tsVkBoG6wo70ARIn+V24IXhWaSe3QZo12A="
|
||||
"wurzelpfropf.cachix.org-1:ilZwK5a6wJqVr7Fyrzp4blIEkGK+LJT0QrpWr1qBNq0="
|
||||
];
|
||||
substituters = nixConfig.extra-substituters;
|
||||
trusted-public-keys = nixConfig.extra-trusted-public-keys;
|
||||
};
|
||||
|
||||
system.autoUpgrade = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue