summaryrefslogtreecommitdiffstats
path: root/nixos/tests
diff options
context:
space:
mode:
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>2021-01-14 10:15:37 +0100
committerGitHub <noreply@github.com>2021-01-14 10:15:37 +0100
commit721a4ecfa690e29af2b8b6bc3b244488d6b3dac5 (patch)
tree3a43e0ea46911c81539fd4725daa45e26ed8a20a /nixos/tests
parent3022d757812276206ecc143cf7c76c35719a3b3a (diff)
parentf741cccd456be47c0b56f5468df851f1182f4a1b (diff)
Merge pull request #109114 from illustris/searx
searx: 0.17.0 -> 0.18.0
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, ...} :
)
'';
})
-