Compare commits

..

No commits in common. "a94e7e88985a198ebb3d49475a6e627b5c7c51fb" and "de5314fc31059b7812fb613a91624ce90b80bc07" have entirely different histories.

2 changed files with 0 additions and 49 deletions

View file

@ -71,11 +71,6 @@
enable = true;
domain = "home.${config.custom.networking.overlay.domain}";
};
searxng = {
enable = true;
domain = "search.${config.custom.networking.overlay.domain}";
};
};
};
}

View file

@ -1,44 +0,0 @@
{ config, lib, ... }:
let
cfg = config.custom.web-services.searxng;
in
{
options.custom.web-services.searxng = {
enable = lib.mkEnableOption "";
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
port = lib.mkOption {
type = lib.types.port;
default = 27916;
};
};
config = lib.mkIf cfg.enable {
services.searx = {
enable = true;
settings = {
server = {
port = cfg.port;
secret_key = "unnecessary";
};
ui.center_alignment = true;
plugins = {
"searx.plugins.calculator.SXNGPlugin".active = true;
"searx.plugins.infinite_scroll.SXNGPlugin".active = true;
"searx.plugins.self_info.SXNGPlugin".active = true;
};
};
};
custom = {
services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
meta.sites.${cfg.domain} = {
title = "SearXNG";
icon = "sh:searxng";
};
};
};
}