summary refs log tree commit diff
path: root/nixos/modules/services/networking/searx.nix
diff options
context:
space:
mode:
authoriko <ilyakooo0@gmail.com>2022-08-28 16:36:52 +0300
committeriko <ilyakooo0@gmail.com>2022-08-28 16:52:42 +0300
commit4bc69a52353e303bd75f1b9461ea1b4d016043e4 (patch)
tree4766b178741e19ca25f0b8934bec5be3c846abce /nixos/modules/services/networking/searx.nix
parent4118f6294b2eb5c2b585b551b780be7fd1d45b4d (diff)
downloadnixpkgs-4bc69a52353e303bd75f1b9461ea1b4d016043e4.tar
nixpkgs-4bc69a52353e303bd75f1b9461ea1b4d016043e4.tar.gz
nixpkgs-4bc69a52353e303bd75f1b9461ea1b4d016043e4.tar.bz2
nixpkgs-4bc69a52353e303bd75f1b9461ea1b4d016043e4.tar.lz
nixpkgs-4bc69a52353e303bd75f1b9461ea1b4d016043e4.tar.xz
nixpkgs-4bc69a52353e303bd75f1b9461ea1b4d016043e4.tar.zst
nixpkgs-4bc69a52353e303bd75f1b9461ea1b4d016043e4.zip
nixos/searx: improve searxng compatibility
Diffstat (limited to 'nixos/modules/services/networking/searx.nix')
-rw-r--r--nixos/modules/services/networking/searx.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/searx.nix b/nixos/modules/services/networking/searx.nix
index 238479864f8..2a97539032d 100644
--- a/nixos/modules/services/networking/searx.nix
+++ b/nixos/modules/services/networking/searx.nix
@@ -195,7 +195,10 @@ in
         ExecStart = "${cfg.package}/bin/searx-run";
       } // optionalAttrs (cfg.environmentFile != null)
         { EnvironmentFile = builtins.toPath cfg.environmentFile; };
-      environment.SEARX_SETTINGS_PATH = cfg.settingsFile;
+      environment = {
+        SEARX_SETTINGS_PATH = cfg.settingsFile;
+        SEARXNG_SETTINGS_PATH = cfg.settingsFile;
+      };
     };
 
     systemd.services.uwsgi = mkIf (cfg.runInUwsgi)