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"; }; # TODO: setup url here # TODO: make this work #result_proxy.key = "!!binary \"${config.services.morty.key}\""; }; }; assertions = [{ assertion = config.services.searx.environmentFile != null; message = "Please define a Searx environment file with your secrets"; }]; services.morty = { enable = true; port = 3002; }; # TODO: setup the reverse proxy here }