nix/container/Search.nix

20 lines
407 B
Nix

{ 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";
};
};
};
};
};
}