From 339d4af34c49a3f287eca3c9f23366f82dfbc639 Mon Sep 17 00:00:00 2001 From: Ethan Simmons Date: Fri, 2 Aug 2024 12:54:04 -0500 Subject: [PATCH] Update diphda --- hosts/diphda/system.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/diphda/system.nix b/hosts/diphda/system.nix index 148a12e..423b5ec 100644 --- a/hosts/diphda/system.nix +++ b/hosts/diphda/system.nix @@ -21,6 +21,8 @@ age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; secrets."mc-arcadia/repo_password" = {}; + secrets."porkbun/secret_key" = {}; + secrets."porkbun/api_key" = {}; }; systemd.timers."mc-arcadia-backup" = { @@ -72,11 +74,12 @@ security.acme = { acceptTerms = true; + defaults.email = "eesimmons9105@gmail.com"; certs."download.simmer505.com" = { dnsProvider = "porkbun"; environmentFile = "${pkgs.writeText "porkbun-creds" '' - INWX_USERNAME=${pkgs.readFile} - INWX_PASSWORD=${pkgs.readFile} + PORKBUN_SECRET_API_KEY="$(cat ${config.sops.secrets."porkbun/api_key".path})" + PORKBUN_API_KEY="$(cat ${config.sops.secrets."porkbun/api_key".path})" ''}"; }; };