This repository has no description
461 B
22 lines
1{ pkgs, ... }:
2let
3 port = 8889;
4in {
5 services.nginx.virtualHosts.search = {
6 serverAliases = [ "search.r" ];
7 locations."/".extraConfig = ''
8 proxy_set_header Host $host;
9 proxy_pass http://127.0.0.1:${builtins.toString port};
10 '';
11 };
12
13 services.searx = {
14 enable = true;
15 configFile = pkgs.writeText "searx.cfg" (builtins.toJSON {
16 use_default_settings = true;
17 server = {
18 port = port;
19 };
20 });
21 };
22}