Fix wrong name.

This commit is contained in:
Sarah 2021-10-17 12:34:40 +02:00
parent d7e5393ffe
commit 6faa6e2ba1
No known key found for this signature in database
GPG key ID: 708F7ACE058F0186

View file

@ -98,15 +98,15 @@ in
"/nix/store"
])
(lib.mkIf (config.privateKeyFile != null) [
(toString config.privateKeyFile)
(lib.mkIf (cfg.privateKeyFile != null) [
(toString cfg.privateKeyFile)
]);
];
ExecPaths = [
"/nix/store"
];
Environment = lib.mkIf (config.privateKeyFile != null) [
"NIX_SECRET_KEY_FILE=${toString config.privateKeyFile}"
Environment = lib.mkIf (cfg.privateKeyFile != null) [
"NIX_SECRET_KEY_FILE=${toString cfg.privateKeyFile}"
];
};
script = ''
@ -118,8 +118,8 @@ in
binaryCaches = [
"http://127.0.0.1:12304/"
];
binaryCachePublicKeys = lib.mkIf (config.publicKeyFile != null) [
(builtins.readFile config.publicKeyFile)
binaryCachePublicKeys = lib.mkIf (cfg.publicKeyFile != null) [
(builtins.readFile cfg.publicKeyFile)
];
};