1
Fork 0
satellite/hosts/nixos/lapetus/services/whoogle.nix

33 lines
929 B
Nix
Raw Permalink Normal View History

2024-01-31 21:59:11 +01:00
{ lib, config, ... }:
2024-06-13 15:47:36 +02:00
let websiteBlocklist = [
"www.saashub.com"
"slant.co"
"nix-united.com"
"libhunt.com"
"www.devopsschool.com"
"medevel.com"
"alternativeto.net"
"linuxiac.com"
"www.linuxlinks.com"
"sourceforge.net"
];
2024-01-18 07:44:16 +01:00
in
{
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-06-13 15:47:36 +02:00
ports = [ "${toString config.satellite.nginx.at.search.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";
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
2024-06-13 15:47:36 +02:00
WHOOGLE_ALT_RD = config.satellite.nginx.at.redlib.host;
WHOOGLE_ALT_YT = config.satellite.nginx.at.yt.host;
2024-01-18 07:44:16 +01:00
};
};
2024-01-31 20:26:11 +01:00
2024-06-13 15:47:36 +02:00
satellite.nginx.at.search.port = config.satellite.ports.whoogle;
2024-01-18 07:44:16 +01:00
}