diff --git a/modules/global/nix.nix b/modules/global/nix.nix index 8be9c8b..8466113 100644 --- a/modules/global/nix.nix +++ b/modules/global/nix.nix @@ -55,9 +55,9 @@ with lib; keep-outputs = true keep-derivations = true fallback = true - '' + (if config.modules.secrets.enable then '' + '' + (optionalString config.modules.secrets.enable '' secret-key-files = ${config.secrets.binary-cache-private-key} - '' else ""); + ''); }; nixpkgs.config = {