From 68ea4de28cf4cb5020a51515602d68cf15960dc7 Mon Sep 17 00:00:00 2001 From: Andre Date: Sat, 26 Oct 2024 11:56:09 -0400 Subject: [PATCH] Hevana: Goodbye Namecheap, we Porkbun now --- hosts/Hevana/default.nix | 20 ++++++++++---------- modules/secrets/default.nix | Bin 4905 -> 5006 bytes 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hosts/Hevana/default.nix b/hosts/Hevana/default.nix index 2f828d1..9c4b480 100644 --- a/hosts/Hevana/default.nix +++ b/hosts/Hevana/default.nix @@ -8,13 +8,13 @@ let # Where to store service files services-root = "/storage/services"; - # Credentials for interacting with the Namecheap API - namecheapCredentials = { - "NAMECHEAP_API_USER_FILE" = "${pkgs.writeText "namecheap-api-user" '' - ${config.secrets.networking.namecheap.api.user} + # Credentials for interacting with the Porkbun API + porkbunCredentials = { + "PORKBUN_API_KEY_FILE" = "${pkgs.writeText "porkbun-api-key" '' + ${config.secrets.networking.porkbun.api.apiKey} ''}"; - "NAMECHEAP_API_KEY_FILE" = "${pkgs.writeText "namecheap-api-key" '' - ${config.secrets.networking.namecheap.api.key} + "PORKBUN_SECRET_API_KEY_FILE" = "${pkgs.writeText "porkbun-secret-api-key" '' + ${config.secrets.networking.porkbun.api.secretKey} ''}"; }; @@ -76,15 +76,15 @@ in defaultEmail = config.secrets.users.aires.email; certs = { "${config.secrets.networking.domains.primary}" = { - dnsProvider = "namecheap"; + dnsProvider = "porkbun"; extraDomainNames = subdomains; webroot = null; # Required in order to prevent a failed assertion - credentialFiles = namecheapCredentials; + credentialFiles = porkbunCredentials; }; "${config.secrets.networking.domains.blog}" = { - dnsProvider = "namecheap"; + dnsProvider = "porkbun"; webroot = null; # Required in order to prevent a failed assertion - credentialFiles = namecheapCredentials; + credentialFiles = porkbunCredentials; }; }; }; diff --git a/modules/secrets/default.nix b/modules/secrets/default.nix index 1246e2aef1d4981611b2c781a397cf4fbf7c9cff..0d47e9a1e34f4bbeb62ffedb3ca5a7b306997384 100644 GIT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