blob: 55fbc305b201424e1c54c86b95c68f014f1c4071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
inputs:
{ config, ... }:
{
services.searx = {
enable = true;
runInUwsgi = true;
uwsgiConfig = {
socket = "/run/searx/searx.sock";
chmod-socket = 666;
cache2 = "name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1";
};
settings = {
server.secret_key = "@SEARX_SECRET_KEY@";
ui = {
default_theme = "oscar";
theme_args.oscar_style = "logicodev-dark";
};
};
};
assertions = [{
assertion = config.services.searx.environmentFile != null;
message = "Please define a Searx environment file with your secrets";
}];
}
|