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