nixos/dokuwiki: Minor code cleanup

This commit is contained in:
Jonas Heinrich 2022-01-20 12:01:09 +01:00
parent 3a8f26c2c1
commit 884daaafcb

View file

@ -249,16 +249,15 @@ in
{ {
# interface # interface
options = { options = {
services.dokuwiki = mkOption { services.dokuwiki = {
type = types.submodule {
options.sites = mkOption { sites = mkOption {
type = types.attrsOf (types.submodule siteOpts); type = types.attrsOf (types.submodule siteOpts);
default = {}; default = {};
description = "Specification of one or more DokuWiki sites to serve"; description = "Specification of one or more DokuWiki sites to serve";
}; };
options.webserver = mkOption { webserver = mkOption {
type = types.enum [ "nginx" "caddy" ]; type = types.enum [ "nginx" "caddy" ];
default = "nginx"; default = "nginx";
description = '' description = ''
@ -271,12 +270,9 @@ in
See <xref linkend="opt-services.httpd.virtualHosts"/> for further information. See <xref linkend="opt-services.httpd.virtualHosts"/> for further information.
''; '';
}; };
};
default = {};
description = "DokuWiki configuration";
};
}; };
};
# implementation # implementation
config = mkIf (eachSite != {}) (mkMerge [{ config = mkIf (eachSite != {}) (mkMerge [{