2024-01-31 21:59:11 +01:00
|
|
|
{ lib, config, ... }:
|
2024-01-18 07:44:16 +01:00
|
|
|
let
|
|
|
|
port = 8401;
|
|
|
|
websiteBlocklist = [
|
2024-01-31 20:26:11 +01:00
|
|
|
"www.saashub.com"
|
2024-01-18 07:44:16 +01:00
|
|
|
"slant.co"
|
|
|
|
"nix-united.com"
|
|
|
|
"libhunt.com"
|
2024-03-04 12:03:06 +01:00
|
|
|
"www.devopsschool.com"
|
|
|
|
"medevel.com"
|
|
|
|
"alternativeto.net"
|
|
|
|
"linuxiac.com"
|
|
|
|
"www.linuxlinks.com"
|
2024-04-13 22:42:29 +02:00
|
|
|
"sourceforge.net"
|
2024-01-18 07:44:16 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
2024-01-31 21:59:11 +01:00
|
|
|
imports = [
|
|
|
|
../../common/optional/podman.nix
|
|
|
|
../../common/optional/services/nginx.nix
|
|
|
|
];
|
2024-01-18 07:44:16 +01:00
|
|
|
|
2024-01-18 07:48:58 +01:00
|
|
|
virtualisation.oci-containers.containers.whoogle-search = {
|
2024-01-18 07:44:16 +01:00
|
|
|
image = "benbusby/whoogle-search";
|
|
|
|
autoStart = true;
|
2024-01-18 07:49:59 +01:00
|
|
|
ports = [ "${toString port}:5000" ]; # server:docker
|
2024-01-18 07:44:16 +01:00
|
|
|
environment = {
|
2024-01-18 07:47:17 +01:00
|
|
|
WHOOGLE_UPDATE_CHECK = "0";
|
|
|
|
WHOOGLE_CONFIG_DISABLE = "0";
|
2024-01-18 07:50:44 +01:00
|
|
|
WHOOGLE_CONFIG_BLOCK = lib.concatStringsSep "," websiteBlocklist;
|
2024-01-18 07:44:16 +01:00
|
|
|
WHOOGLE_CONFIG_THEME = "system";
|
2024-04-23 08:33:17 +02:00
|
|
|
WHOOGLE_ALT_WIKI = ""; # disable redirecting wikipedia links
|
|
|
|
WHOOGLE_ALT_RD = "redlib.moonythm.dev";
|
|
|
|
WHOOGLE_ALT_YT = "yt.moonythm.dev";
|
2024-01-18 07:44:16 +01:00
|
|
|
};
|
|
|
|
};
|
2024-01-31 20:26:11 +01:00
|
|
|
|
2024-02-03 15:34:35 +01:00
|
|
|
services.nginx.virtualHosts."search.moonythm.dev" = config.satellite.proxy port { };
|
2024-01-18 07:44:16 +01:00
|
|
|
}
|