blob: c6812747c633e2366e31238a07eee499d5d5e425 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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"
];
};
};
};
}
|