nixos/dokuwiki: Minor code cleanup
This commit is contained in:
@@ -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 [{
|
||||||
|
|||||||
Reference in New Issue
Block a user