refactor: den-native config, tunnel quirk, per-module inputs
This commit is contained in:
1 parent
0431bce152
commit
bfbac8b961
100 files changed
+668
-1417
No files matched your search
@@ -1,23 +1,23 @@
|
||||
{
|
||||
den.aspects.searxng = {
|
||||
nixos = { config, ... }: {
|
||||
den.tunnels = [ "search" ];
|
||||
den.aspects.services.searxng = let port = 8888; in {
|
||||
tunnel = { subdomain = "search"; inherit port; };
|
||||
|
||||
nixos = { host, config, ... }: let user = host.owner; home = config.users.users.${user}.home; in {
|
||||
systemd.services.searx-init.serviceConfig.EnvironmentFile = [
|
||||
"/home/bug/.searxng.env"
|
||||
"${home}/.searxng.env"
|
||||
];
|
||||
|
||||
services.searx = {
|
||||
enable = true;
|
||||
redisCreateLocally = false;
|
||||
configureUwsgi = false;
|
||||
settingsFile = ./searxng.yml;
|
||||
environmentFile = "/home/bug/.searxng.env";
|
||||
settingsFile = builtins.path { path = ./searxng.yml; name = "searxng.yml"; };
|
||||
environmentFile = "${home}/.searxng.env";
|
||||
|
||||
settings = {
|
||||
general.instance_name = "search.bug.tools";
|
||||
general.instance_name = "search.${host.domain}";
|
||||
|
||||
server.port = config.den.portmap.search;
|
||||
server.port = port;
|
||||
server.bind_address = "0.0.0.0";
|
||||
server.secret_key = "$SEARX_SECRET_KEY";
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user