optional takes a single, not a list

This commit is contained in:
niten 2021-12-13 09:12:06 -08:00
parent d98115d854
commit fa75fc9031
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ in {
in { in {
acme.host-domains.${hostname} = mapAttrs (site: siteCfg: acme.host-domains.${hostname} = mapAttrs (site: siteCfg:
mkIf siteCfg.enableACME { mkIf siteCfg.enableACME {
extra-domains = optional (site != host-fqdn) [ host-fqdn ]; extra-domains = optional (site != host-fqdn) (trace host-fqdn host-fqdn);
local-copies.ejabberd = { local-copies.ejabberd = {
user = cfg.user; user = cfg.user;
group = cfg.group; group = cfg.group;