diff --git a/hosts.nix b/hosts.nix index eac7a93..4782ce3 100644 --- a/hosts.nix +++ b/hosts.nix @@ -20,6 +20,7 @@ in ]; config = { sonarr.domain = "sonarr.${hlConfig.domain}"; + traefik.wildcardDomains = [ hlConfig.domain ]; }; stateVersion = "24.05"; }; diff --git a/roles/traefik.nix b/roles/traefik.nix index 238e8bf..8309dc8 100644 --- a/roles/traefik.nix +++ b/roles/traefik.nix @@ -79,12 +79,10 @@ tls = { certResolver = "letsencrypt"; - domains = mkList ( - map (domain: { - main = domain; - sans = [ "*.${domain}" ]; - }) cfg.wildcardDomains - ); + domains = map (domain: { + main = domain; + sans = [ "*.${domain}" ]; + }) cfg.wildcardDomains; }; }; };