From 03c5e14e01c3615ad9510473a62fb348943e7618 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Mon, 30 Dec 2024 18:47:38 +0100 Subject: [PATCH] clanModules: fix dyndns porkbun support --- clanModules/dyndns/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clanModules/dyndns/default.nix b/clanModules/dyndns/default.nix index 71856e48d..f22fda632 100644 --- a/clanModules/dyndns/default.nix +++ b/clanModules/dyndns/default.nix @@ -1,4 +1,5 @@ { + inputs, config, pkgs, lib, @@ -102,6 +103,7 @@ in "password" "token" "api_key" + "secret_api_key" ]; default = "password"; description = "The field name for the secret"; @@ -126,7 +128,8 @@ in }; imports = [ - ../nginx + #../nginx + inputs.clan-core.clanModules.nginx ]; config = lib.mkMerge [ @@ -197,6 +200,8 @@ in attrset['password'] = get_credential(attrset['password']) elif "token" in attrset: attrset['token'] = get_credential(attrset['token']) + elif "secret_api_key" in attrset: + attrset['secret_api_key'] = get_credential(attrset['secret_api_key']) elif "api_key" in attrset: attrset['api_key'] = get_credential(attrset['api_key']) else: