mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 05:29:20 +03:00
nixos/dokuwiki: Minor code cleanup
This commit is contained in:
parent
3a8f26c2c1
commit
884daaafcb
1 changed files with 20 additions and 24 deletions
|
@ -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 [{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue