summaryrefslogtreecommitdiff
path: root/hosts/vidhar/changedetection-io/default.nix
diff options
context:
space:
mode:
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}