summaryrefslogtreecommitdiff
path: root/hosts/vidhar/changedetection-io/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-12-09 10:27:01 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-12-09 10:27:01 +0100
commit5d879efa0c9ed73d7f6f19acebb87843c86a46e2 (patch)
tree22f4302c5adcb8dfc76d86f6656fae542746c5a4 /hosts/vidhar/changedetection-io/default.nix
parentc2c76862d348b4a32a0292bad0b954672c9e162d (diff)
downloadnixos-5d879efa0c9ed73d7f6f19acebb87843c86a46e2.tar
nixos-5d879efa0c9ed73d7f6f19acebb87843c86a46e2.tar.gz
nixos-5d879efa0c9ed73d7f6f19acebb87843c86a46e2.tar.bz2
nixos-5d879efa0c9ed73d7f6f19acebb87843c86a46e2.tar.xz
nixos-5d879efa0c9ed73d7f6f19acebb87843c86a46e2.zip
changedetection.io
Diffstat (limited to 'hosts/vidhar/changedetection-io/default.nix')
-rw-r--r--hosts/vidhar/changedetection-io/default.nix50
1 files changed, 50 insertions, 0 deletions
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 @@
1{ config, pkgs, ... }:
2
3{
4 config = {
5 services.changedetection-io = {
6 enable = true;
7 behindProxy = true;
8 # playwrightSupport = true;
9 baseURL = "https://changedetection.yggdrasil.li";
10 listenAddress = "2a03:4000:52:ada:4:1::";
11 port = 5001;
12 environmentFile = config.sops.secrets."changedetection-io_env".path;
13 };
14
15 sops.secrets."changedetection-io_env" = {
16 format = "binary";
17 sopsFile = ./changedetection-io_env;
18 };
19
20 systemd.services.changedetection-io = {
21 path = with pkgs; [
22 poppler-utils
23 ];
24 serviceConfig = {
25 Environment = [
26 "PLAYWRIGHT_DRIVER_URL=ws://10.88.0.5:3000"
27 "DISABLE_VERSION_CHECK=true"
28 "MINIMUM_SECONDS_RECHECK_TIME=0"
29 ];
30 };
31 };
32
33 virtualisation.oci-containers.containers = {
34 changedetection-io-playwright = {
35 image = "dgtlmoon/sockpuppetbrowser";
36 pull = "newer";
37 environment = {
38 SCREEN_WIDTH = "1920";
39 SCREEN_HEIGHT = "1024";
40 SCREEN_DEPTH = "16";
41 MAX_CONCURRENT_CHROME_PROCESSES = "10";
42 STATS_REFRESH_SECONDS = "600";
43 };
44 extraOptions = [
45 "--ip=10.88.0.5"
46 ];
47 };
48 };
49 };
50}