nix/container/Search.nix

20 lines
407 B
Nix
Raw Normal View History

2024-06-14 02:58:39 +03:00
{ container, pkgs, ... } @args: let
2024-06-09 23:35:53 +03:00
cfg = container.config.search;
in {
containers.search = container.mkContainer cfg {
2024-06-14 02:58:39 +03:00
config = { ... }: container.mkContainerConfig cfg {
2024-06-09 23:35:53 +03:00
services.searx = {
enable = true;
package = pkgs.searxng;
settings = {
server = {
bind_address = cfg.address;
port = cfg.port;
secret_key = "searxxx";
};
};
};
};
};
}