push
This commit is contained in:
2
main.nix
2
main.nix
@@ -13,7 +13,7 @@
|
|||||||
./modules/mailserver.nix
|
./modules/mailserver.nix
|
||||||
./modules/vscode-server.nix
|
./modules/vscode-server.nix
|
||||||
./modules/copyparty.nix
|
./modules/copyparty.nix
|
||||||
./modules/fedi/searxng.nix
|
./modules/searxng.nix
|
||||||
./modules/cloudflared.nix
|
./modules/cloudflared.nix
|
||||||
./modules/invidious.nix
|
./modules/invidious.nix
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# remove sops dependency from searxng module
|
|
||||||
systemd.services.searx-init.serviceConfig.EnvironmentFile = [
|
|
||||||
"/home/bug/nix/modules/fedi/searxng_key"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.searx = {
|
|
||||||
enable = true;
|
|
||||||
redisCreateLocally = false;
|
|
||||||
configureUwsgi = false;
|
|
||||||
settingsFile = config/searxng.yml;
|
|
||||||
environmentFile = "/home/bug/nix/modules/fedi/searxng_key";
|
|
||||||
settings = {
|
|
||||||
server.port = 8888;
|
|
||||||
server.bind_address = "0.0.0.0";
|
|
||||||
server.secret_key = "$SEARX_SECRET_KEY";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
44
modules/searxng.nix
Normal file → Executable file
44
modules/searxng.nix
Normal file → Executable file
@@ -1,33 +1,21 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.searx = {
|
systemd.services.searx-init.serviceConfig.EnvironmentFile = [
|
||||||
enable = true;
|
"/home/bug/.searxng.env"
|
||||||
|
];
|
||||||
|
|
||||||
|
services.searx = {
|
||||||
|
enable = true;
|
||||||
|
redisCreateLocally = false;
|
||||||
|
configureUwsgi = false;
|
||||||
|
settingsFile = config/searxng.yml;
|
||||||
|
environmentFile = "/home/bug/.searxng.env";
|
||||||
|
|
||||||
environmentFile = "/home/bug/nix/modules/searxng_key";
|
settings = {
|
||||||
redisCreateLocally = true;
|
server.port = 1025;
|
||||||
|
server.bind_address = "0.0.0.0";
|
||||||
settings = {
|
server.secret_key = "$SEARX_SECRET_KEY";
|
||||||
server = {
|
|
||||||
bind_address = "127.0.0.1";
|
|
||||||
port = 1025;
|
|
||||||
secret_key = "test";
|
|
||||||
};
|
|
||||||
|
|
||||||
general = {
|
|
||||||
instance_name = "search.bug.tools";
|
|
||||||
};
|
|
||||||
|
|
||||||
engines = {
|
|
||||||
remove = [
|
|
||||||
"ahmia"
|
|
||||||
"torch"
|
|
||||||
"radio_browser"
|
|
||||||
"wikidata"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
limiter.enable = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user