summary refs log tree commit diff
path: root/nixos/modules/services/web-apps
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2022-01-24 13:42:57 +0100
committerGitHub <noreply@github.com>2022-01-24 13:42:57 +0100
commit454272e7ff8ae3aa638aac829ab2361811e039c3 (patch)
tree98b08077abc3e5724b1140571f525a4d9dfc7423 /nixos/modules/services/web-apps
parente7dbfd7ece0e8f11ef0617919cc5597258eda90f (diff)
parent884daaafcb7ebe9afe7405cd79154dec6d89ad2c (diff)
downloadnixpkgs-454272e7ff8ae3aa638aac829ab2361811e039c3.tar
nixpkgs-454272e7ff8ae3aa638aac829ab2361811e039c3.tar.gz
nixpkgs-454272e7ff8ae3aa638aac829ab2361811e039c3.tar.bz2
nixpkgs-454272e7ff8ae3aa638aac829ab2361811e039c3.tar.lz
nixpkgs-454272e7ff8ae3aa638aac829ab2361811e039c3.tar.xz
nixpkgs-454272e7ff8ae3aa638aac829ab2361811e039c3.tar.zst
nixpkgs-454272e7ff8ae3aa638aac829ab2361811e039c3.zip
Merge pull request #155847 from onny/dokuwikicleanup
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 392748a93e0..30913ced884 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