From 6faa6e2ba1b872ffcb936a6a4aab0841f4e13c6c Mon Sep 17 00:00:00 2001 From: Sarah Date: Sun, 17 Oct 2021 12:34:40 +0200 Subject: [PATCH] Fix wrong name. --- module.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module.nix b/module.nix index 7b84eda..6a79686 100644 --- a/module.nix +++ b/module.nix @@ -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) ]; };