0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

Merge pull request #155847 from onny/dokuwikicleanup

nixos/dokuwiki: Minor code cleanup
This commit is contained in:
Renaud 2022-01-24 13:42:57 +01:00 committed by GitHub
commit 454272e7ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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