acme: fix typos

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

View file

@ -19,23 +19,23 @@ in
default = lib.snowfall.fs.get-file "secrets/secrets.yaml";
description = "SecretFile";
};
domainname = mkOpt str "christophhollizeck.dev";
staging = mkOpt bool virtual "Use staging server for testing or not";
domainname = mkOpt str "christophhollizeck.dev" "domainname to use";
staging = mkOpt bool false "Use staging server for testing or not";
};
config = mkIf cfg.enable {
sops = {
secrets = {
netcup_customer_number = {
inherit sopsFile;
inherit (cfg) sopsFile;
};
netcup_api_key = {
inherit sopsFile;
inherit (cfg) sopsFile;
};
netcup_api_password = {
inherit sopsFile;
inherit (cfg) sopsFile;
};
};
@ -64,10 +64,10 @@ in
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";
dnsResolver = "1.1.1.1:53";
extraDomainNames = [ "*.${cfg.domainName}" ];
extraDomainNames = [ "*.${cfg.domainname}" ];
};
};