summaryrefslogtreecommitdiffstats
path: root/nixos/tests
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/searx.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/nixos/tests/searx.nix b/nixos/tests/searx.nix
index e5fee3466bfa..357ade105358 100644
--- a/nixos/tests/searx.nix
+++ b/nixos/tests/searx.nix
@@ -22,13 +22,15 @@ import ./make-test-python.nix ({ pkgs, ...} :
bind_address = "0.0.0.0";
secret_key = "@SEARX_SECRET_KEY@";
};
- settings.engines = {
- wolframalpha =
- { api_key = "@WOLFRAM_API_KEY@";
- engine = "wolframalpha_api";
- };
- startpage.shortcut = "start";
- };
+ settings.engines = [
+ { name = "wolframalpha";
+ api_key = "@WOLFRAM_API_KEY@";
+ engine = "wolframalpha_api";
+ }
+ { name = "startpage";
+ shortcut = "start";
+ }
+ ];
};
};
@@ -39,6 +41,9 @@ import ./make-test-python.nix ({ pkgs, ...} :
services.searx = {
enable = true;
+ # searx refuses to run if unchanged
+ settings.server.secret_key = "somesecret";
+
runInUwsgi = true;
uwsgiConfig = {
# serve using the uwsgi protocol
@@ -106,4 +111,3 @@ import ./make-test-python.nix ({ pkgs, ...} :
)
'';
})
-