nixos/searx: improve searxng compatibility

This commit is contained in:
iko 2022-08-28 16:36:52 +03:00
parent 4118f6294b
commit 4bc69a5235
No known key found for this signature in database
GPG key ID: 82C257048D1026F2

View file

@ -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)