update nix options to silence warning
This commit is contained in:
parent
2ae67323cc
commit
32cd1b098b
1 changed files with 10 additions and 9 deletions
|
@ -142,14 +142,15 @@ in
|
|||
};
|
||||
|
||||
nix = {
|
||||
binaryCaches = [
|
||||
settings = {
|
||||
substituters = [
|
||||
"http://127.0.0.1:12304/"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
trusted-public-keys = [
|
||||
(lib.mkIf (cfg.publicKeyFile != null) (builtins.readFile cfg.publicKeyFile))
|
||||
(lib.mkIf (cfg.publicKey != null) cfg.publicKey)
|
||||
];
|
||||
|
||||
};
|
||||
extraOptions = lib.mkIf (cfg.globalCacheTTL != null) ''
|
||||
narinfo-cache-negative-ttl = ${toString cfg.globalCacheTTL}
|
||||
narinfo-cache-positive-ttl = ${toString cfg.globalCacheTTL}
|
||||
|
|
Loading…
Reference in a new issue