Skip to content

Commit

Permalink
nixos/tests/searx: use configured package for static content
Browse files Browse the repository at this point in the history
Also use the simple theme because upstream dropped the oscar one:
searxng/searxng#1167
  • Loading branch information
dotlambda authored and SuperSandro2000 committed Apr 12, 2024
1 parent d240a29 commit 4ade559
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos/tests/searx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import ./make-test-python.nix ({ pkgs, ...} :
};

# fancy setup: run in uWSGI and use nginx as proxy
nodes.fancy = { ... }: {
nodes.fancy = { config, ... }: {
imports = [ ../modules/profiles/minimal.nix ];

services.searx = {
Expand Down Expand Up @@ -65,7 +65,7 @@ import ./make-test-python.nix ({ pkgs, ...} :
include ${pkgs.nginx}/conf/uwsgi_params;
uwsgi_pass unix:/run/searx/uwsgi.sock;
'';
locations."/searx/static/".alias = "${pkgs.searx}/share/static/";
locations."/searx/static/".alias = "${config.services.searx.package}/share/static/";
};

# allow nginx access to the searx socket
Expand Down Expand Up @@ -108,7 +108,7 @@ import ./make-test-python.nix ({ pkgs, ...} :
"${pkgs.curl}/bin/curl --fail http://localhost/searx >&2"
)
fancy.succeed(
"${pkgs.curl}/bin/curl --fail http://localhost/searx/static/themes/oscar/js/bootstrap.min.js >&2"
"${pkgs.curl}/bin/curl --fail http://localhost/searx/static/themes/simple/js/leaflet.js >&2"
)
'';
})

0 comments on commit 4ade559

Please sign in to comment.