acme: fix typos

This commit is contained in:
Christoph Hollizeck 2024-11-07 22:33:27 +01:00
parent 863bfd9e4b
commit ab915bd74d
Signed by: Daholli
GPG key ID: 1763BB530F50279E

View file

@ -19,23 +19,23 @@ in
default = lib.snowfall.fs.get-file "secrets/secrets.yaml"; default = lib.snowfall.fs.get-file "secrets/secrets.yaml";
description = "SecretFile"; description = "SecretFile";
}; };
domainname = mkOpt str "christophhollizeck.dev"; domainname = mkOpt str "christophhollizeck.dev" "domainname to use";
staging = mkOpt bool virtual "Use staging server for testing or not"; staging = mkOpt bool false "Use staging server for testing or not";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
sops = { sops = {
secrets = { secrets = {
netcup_customer_number = { netcup_customer_number = {
inherit sopsFile; inherit (cfg) sopsFile;
}; };
netcup_api_key = { netcup_api_key = {
inherit sopsFile; inherit (cfg) sopsFile;
}; };
netcup_api_password = { netcup_api_password = {
inherit sopsFile; inherit (cfg) sopsFile;
}; };
}; };
@ -64,10 +64,10 @@ in
environmentFile = config.sops.templates."netcup.env".path; environmentFile = config.sops.templates."netcup.env".path;
}; };
certs."${cfg.domainName}" = { certs."${cfg.domainname}" = {
server = mkIf cfg.staging "https://acme-staging-v02.api.letsencrypt.org/directory"; server = mkIf cfg.staging "https://acme-staging-v02.api.letsencrypt.org/directory";
dnsResolver = "1.1.1.1:53"; dnsResolver = "1.1.1.1:53";
extraDomainNames = [ "*.${cfg.domainName}" ]; extraDomainNames = [ "*.${cfg.domainname}" ];
}; };
}; };