From adb0a9e935c8ec7468a6652cd419007005c0a394 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 22 Oct 2021 23:12:30 -0700 Subject: [PATCH] Properly define anySsl --- module.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module.nix b/module.nix index 9fd319a..b11e5c7 100644 --- a/module.nix +++ b/module.nix @@ -3,7 +3,7 @@ with lib; let cfg = config.services.danilafe-blog; sslForDomain = domain: (cfg.ssl == true) || (cfg.ssl."${domain}" or false); - anySsl = any (mapAttrsToList (domain: pkg: sslForDomain domain) cfg.domains); + anySsl = any sslForDomain (attrNames cfg.domains); virtualHost = domain: package: { virtualHosts."${domain}" = mkMerge [ @@ -38,6 +38,7 @@ in }; domains = mkOption { type = types.attrsOf types.package; + default = {}; description = "Attribute set where keys are domains and values are packages to host there."; }; challengePath = mkOption {