nixcache: always trust my own caches, even if not enabled by default
This commit is contained in:
@@ -22,20 +22,19 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = {
|
||||||
# use our own binary cache
|
# use our own binary cache
|
||||||
nix.settings = {
|
nix.settings.substituters = mkIf cfg.enable [
|
||||||
substituters = [
|
"https://nixcache.uninsane.org"
|
||||||
"https://nixcache.uninsane.org"
|
"http://desko:5000"
|
||||||
"http://desko:5000"
|
"https://nix-community.cachix.org"
|
||||||
"https://nix-community.cachix.org"
|
"https://cache.nixos.org/"
|
||||||
"https://cache.nixos.org/"
|
];
|
||||||
];
|
# always trust our keys (so one can explicitly use a substituter even if it's not the default
|
||||||
trusted-public-keys = [
|
nix.settings.trusted-public-keys = [
|
||||||
"nixcache.uninsane.org:r3WILM6+QrkmsLgqVQcEdibFD7Q/4gyzD9dGT33GP70="
|
"nixcache.uninsane.org:r3WILM6+QrkmsLgqVQcEdibFD7Q/4gyzD9dGT33GP70="
|
||||||
"desko:Q7mjjqoBMgNQ5P0e63sLur65A+D4f3Sv4QiycDIKxiI="
|
"desko:Q7mjjqoBMgNQ5P0e63sLur65A+D4f3Sv4QiycDIKxiI="
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
];
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user