update nix options to silence warning

This commit is contained in:
Gabriel Fontes 2022-07-14 01:02:15 -03:00 committed by cid-chan
parent 2ae67323cc
commit 32cd1b098b

View file

@ -21,7 +21,7 @@ in
description = '' description = ''
File containing the private key to sign the derivations with. File containing the private key to sign the derivations with.
''; '';
}; };
publicKeyFile = lib.mkOption { publicKeyFile = lib.mkOption {
type = types.nullOr types.path; type = types.nullOr types.path;
@ -142,14 +142,15 @@ in
}; };
nix = { nix = {
binaryCaches = [ settings = {
"http://127.0.0.1:12304/" substituters = [
]; "http://127.0.0.1:12304/"
binaryCachePublicKeys = [ ];
(lib.mkIf (cfg.publicKeyFile != null) (builtins.readFile cfg.publicKeyFile)) trusted-public-keys = [
(lib.mkIf (cfg.publicKey != null) cfg.publicKey) (lib.mkIf (cfg.publicKeyFile != null) (builtins.readFile cfg.publicKeyFile))
]; (lib.mkIf (cfg.publicKey != null) cfg.publicKey)
];
};
extraOptions = lib.mkIf (cfg.globalCacheTTL != null) '' extraOptions = lib.mkIf (cfg.globalCacheTTL != null) ''
narinfo-cache-negative-ttl = ${toString cfg.globalCacheTTL} narinfo-cache-negative-ttl = ${toString cfg.globalCacheTTL}
narinfo-cache-positive-ttl = ${toString cfg.globalCacheTTL} narinfo-cache-positive-ttl = ${toString cfg.globalCacheTTL}