summary refs log tree commit diff
path: root/nixos/modules/services/networking/searx.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-04-04 17:14:32 +0200
committerProfpatsch <mail@profpatsch.de>2017-04-04 20:40:31 +0200
commita1e6176cbf3b38cf2ecc8f1543d6c562f509a144 (patch)
tree4baf9c1ca78f4c727f7b7d51656ad653c99d5882 /nixos/modules/services/networking/searx.nix
parentb04fb3ffcdc1b736a7f294557e21fab2a501d983 (diff)
downloadnixpkgs-a1e6176cbf3b38cf2ecc8f1543d6c562f509a144.tar
nixpkgs-a1e6176cbf3b38cf2ecc8f1543d6c562f509a144.tar.gz
nixpkgs-a1e6176cbf3b38cf2ecc8f1543d6c562f509a144.tar.bz2
nixpkgs-a1e6176cbf3b38cf2ecc8f1543d6c562f509a144.tar.lz
nixpkgs-a1e6176cbf3b38cf2ecc8f1543d6c562f509a144.tar.xz
nixpkgs-a1e6176cbf3b38cf2ecc8f1543d6c562f509a144.tar.zst
nixpkgs-a1e6176cbf3b38cf2ecc8f1543d6c562f509a144.zip
modules/searx: fix configFile type
Diffstat (limited to 'nixos/modules/services/networking/searx.nix')
-rw-r--r--nixos/modules/services/networking/searx.nix15
1 files changed, 5 insertions, 10 deletions
diff --git a/nixos/modules/services/networking/searx.nix b/nixos/modules/services/networking/searx.nix
index 3520c6d3f7d..e0eef9ed96f 100644
--- a/nixos/modules/services/networking/searx.nix
+++ b/nixos/modules/services/networking/searx.nix
@@ -18,17 +18,12 @@ in
 
     services.searx = {
 
-      enable = mkOption {
-        type = types.bool;
-        default = false;
-        description = "
-          Whether to enable the Searx server. See https://github.com/asciimoo/searx
-        ";
-      };
+      enable = mkEnableOption
+        "the searx server. See https://github.com/asciimoo/searx";
 
       configFile = mkOption {
-        type = types.path;
-        default = "";
+        type = types.nullOr types.path;
+        default = null;
         description = "
           The path of the Searx server configuration file. If no file
           is specified, a default file is used (default config file has
@@ -72,7 +67,7 @@ in
           User = "searx";
           ExecStart = "${cfg.package}/bin/searx-run";
         };
-      } // (optionalAttrs (configFile != "") {
+      } // (optionalAttrs (configFile != null) {
         environment.SEARX_SETTINGS_PATH = configFile;
       });