Skip to content

Commit

Permalink
[nixos/server/changedetection] set salt_pass
Browse files Browse the repository at this point in the history
  • Loading branch information
pSub committed Jan 14, 2025
1 parent 8c74098 commit d1e6565
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions nixos/server/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ in {
sops.secrets = {
"basicauth/passwords" = { owner = "nginx"; };
"cifs/pictures" = {};
"changedetection" = { "changedetection-io" };
"netdata/telegram" = { owner = "netdata"; };
"nextcloud/admin" = { owner = "nextcloud"; };
"nextcloud/db" = { owner = "nextcloud"; };
Expand All @@ -51,6 +52,13 @@ in {
"smtp" = { group = "mail"; };
"geoip/key" = { };
};

sops.templates = {
"changedetection.environment".content = ''
PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:3061/?stealth=1&--disable-web-security=true&blockAds=true
SALTED_PASS="${config.sops.placeholder.changedetection}"
'';
};

# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
Expand Down Expand Up @@ -401,10 +409,7 @@ in {
enable = true;
behindProxy = true;
port = 3060;
#chromePort = 3061;
environmentFile = pkgs.writeText "changedetection-environment" ''
PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:3061/?stealth=1&--disable-web-security=true&blockAds=true
'';
environmentFile = "${config.sops.templates."changedetection.environment".path}";
baseURL = "https://changedetection.frey.family";
};

Expand Down

0 comments on commit d1e6565

Please sign in to comment.