roles/printserver: fix reference to allowedWebClients

This commit is contained in:
2025-08-07 22:31:59 -07:00
parent e40a63ff81
commit a5f8f6e7ef

View File

@@ -41,7 +41,7 @@ in
config =
let
serverAliasesText = lib.concatStringsSep "\n" (
map (client: "ServerAlias ${client}") allowedWebClients
map (client: "ServerAlias ${client}") cfg.allowedWebClients
);
in
mkIf cfg.enable {
@@ -78,7 +78,7 @@ in
Listen 0.0.0.0:631
BrowseLocalProtocols dnssd
${lib.optionalString (allowedWebClients != [ ]) serverAliasesText}
${lib.optionalString (cfg.allowedWebClients != [ ]) serverAliasesText}
DefaultAuthType Basic