All checks were successful
Check Flake / check-flake (push) Successful in 11m39s
30 lines
707 B
Nix
30 lines
707 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
in
|
|
{
|
|
options.enableExtraSubstituters = lib.mkEnableOption "Enable extra substituters";
|
|
|
|
config = lib.mkMerge [
|
|
{
|
|
enableExtraSubstituters = lib.mkDefault true;
|
|
}
|
|
(lib.mkIf config.enableExtraSubstituters {
|
|
nix = {
|
|
settings = {
|
|
substituters = [
|
|
"https://cache.nixos.org/"
|
|
"https://nix-community.cachix.org"
|
|
"http://s0.koi-bebop.ts.net:5000"
|
|
];
|
|
trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
"s0.koi-bebop.ts.net:OjbzD86YjyJZpCp9RWaQKANaflcpKhtzBMNP8I2aPUU="
|
|
];
|
|
};
|
|
};
|
|
})
|
|
];
|
|
}
|