From 5d879efa0c9ed73d7f6f19acebb87843c86a46e2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 9 Dec 2025 10:27:01 +0100 Subject: changedetection.io --- hosts/vidhar/changedetection-io/default.nix | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 hosts/vidhar/changedetection-io/default.nix (limited to 'hosts/vidhar/changedetection-io/default.nix') diff --git a/hosts/vidhar/changedetection-io/default.nix b/hosts/vidhar/changedetection-io/default.nix new file mode 100644 index 00000000..c6812747 --- /dev/null +++ b/hosts/vidhar/changedetection-io/default.nix @@ -0,0 +1,50 @@ +{ config, pkgs, ... }: + +{ + config = { + services.changedetection-io = { + enable = true; + behindProxy = true; + # playwrightSupport = true; + baseURL = "https://changedetection.yggdrasil.li"; + listenAddress = "2a03:4000:52:ada:4:1::"; + port = 5001; + environmentFile = config.sops.secrets."changedetection-io_env".path; + }; + + sops.secrets."changedetection-io_env" = { + format = "binary"; + sopsFile = ./changedetection-io_env; + }; + + systemd.services.changedetection-io = { + path = with pkgs; [ + poppler-utils + ]; + serviceConfig = { + Environment = [ + "PLAYWRIGHT_DRIVER_URL=ws://10.88.0.5:3000" + "DISABLE_VERSION_CHECK=true" + "MINIMUM_SECONDS_RECHECK_TIME=0" + ]; + }; + }; + + virtualisation.oci-containers.containers = { + changedetection-io-playwright = { + image = "dgtlmoon/sockpuppetbrowser"; + pull = "newer"; + environment = { + SCREEN_WIDTH = "1920"; + SCREEN_HEIGHT = "1024"; + SCREEN_DEPTH = "16"; + MAX_CONCURRENT_CHROME_PROCESSES = "10"; + STATS_REFRESH_SECONDS = "600"; + }; + extraOptions = [ + "--ip=10.88.0.5" + ]; + }; + }; + }; +} -- cgit v1.2.3