about summary refs log tree commit diff
path: root/nixos/modules/services/web-apps
diff options
context:
space:
mode:
authorJonas Heinrich <onny@project-insanity.org>2022-01-20 12:01:09 +0100
committerJonas Heinrich <onny@project-insanity.org>2022-01-20 12:01:09 +0100
commit884daaafcb7ebe9afe7405cd79154dec6d89ad2c (patch)
treeaf0a35c3f1ecbd7567ff10d36f98f7fc208533cf /nixos/modules/services/web-apps
parent3a8f26c2c18d11557e830b12d1fd53f03c6cc5c8 (diff)
downloadnixlib-884daaafcb7ebe9afe7405cd79154dec6d89ad2c.tar
nixlib-884daaafcb7ebe9afe7405cd79154dec6d89ad2c.tar.gz
nixlib-884daaafcb7ebe9afe7405cd79154dec6d89ad2c.tar.bz2
nixlib-884daaafcb7ebe9afe7405cd79154dec6d89ad2c.tar.lz
nixlib-884daaafcb7ebe9afe7405cd79154dec6d89ad2c.tar.xz
nixlib-884daaafcb7ebe9afe7405cd79154dec6d89ad2c.tar.zst
nixlib-884daaafcb7ebe9afe7405cd79154dec6d89ad2c.zip
nixos/dokuwiki: Minor code cleanup
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r--nixos/modules/services/web-apps/dokuwiki.nix38
1 files changed, 17 insertions, 21 deletions
diff --git a/nixos/modules/services/web-apps/dokuwiki.nix b/nixos/modules/services/web-apps/dokuwiki.nix
index 392748a93e0a..30913ced8849 100644
--- a/nixos/modules/services/web-apps/dokuwiki.nix
+++ b/nixos/modules/services/web-apps/dokuwiki.nix
@@ -249,33 +249,29 @@ in
 {
   # interface
   options = {
-    services.dokuwiki = mkOption {
-      type = types.submodule {
+    services.dokuwiki = {
 
-        options.sites = mkOption {
-          type = types.attrsOf (types.submodule siteOpts);
-          default = {};
-          description = "Specification of one or more DokuWiki sites to serve";
-        };
+      sites = mkOption {
+        type = types.attrsOf (types.submodule siteOpts);
+        default = {};
+        description = "Specification of one or more DokuWiki sites to serve";
+      };
 
-        options.webserver = mkOption {
-          type = types.enum [ "nginx" "caddy" ];
-          default = "nginx";
-          description = ''
-            Whether to use nginx or caddy for virtual host management.
+      webserver = mkOption {
+        type = types.enum [ "nginx" "caddy" ];
+        default = "nginx";
+        description = ''
+          Whether to use nginx or caddy for virtual host management.
 
-            Further nginx configuration can be done by adapting <literal>services.nginx.virtualHosts.&lt;name&gt;</literal>.
-            See <xref linkend="opt-services.nginx.virtualHosts"/> for further information.
+          Further nginx configuration can be done by adapting <literal>services.nginx.virtualHosts.&lt;name&gt;</literal>.
+          See <xref linkend="opt-services.nginx.virtualHosts"/> for further information.
 
-            Further apache2 configuration can be done by adapting <literal>services.httpd.virtualHosts.&lt;name&gt;</literal>.
-            See <xref linkend="opt-services.httpd.virtualHosts"/> for further information.
-          '';
-        };
+          Further apache2 configuration can be done by adapting <literal>services.httpd.virtualHosts.&lt;name&gt;</literal>.
+          See <xref linkend="opt-services.httpd.virtualHosts"/> for further information.
+        '';
       };
-      default = {};
-      description = "DokuWiki configuration";
-    };
 
+    };
   };
 
   # implementation