{ 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" ]; }; }; }; }