2024-01-18 07:44:16 +01:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
|
|
|
port = 8401;
|
|
|
|
websiteBlocklist = [
|
|
|
|
"www.saashub.com/"
|
|
|
|
"slant.co"
|
|
|
|
"nix-united.com"
|
|
|
|
"libhunt.com"
|
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [ ../../common/optional/podman.nix ];
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ port ];
|
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:44:16 +01:00
|
|
|
WHOOGLE_CONFIG_BLOCK = lib.concatStringsSep websiteBlocklist;
|
|
|
|
WHOOGLE_CONFIG_THEME = "system";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|