From 20252a7cc95e1c7480f9d559e3d051401f4e9c43 Mon Sep 17 00:00:00 2001 From: Kalle Struik Date: Thu, 26 Dec 2024 19:23:12 +0100 Subject: [PATCH] Not sure what mkList even was supposed to do... --- hosts.nix | 1 + roles/traefik.nix | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) 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; }; }; };