nix/container/Search.nix

20 lines
407 B
Nix
Raw Normal View History

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