From 8afa54ac5d3d83bbab6a364a43ebe89ba177d879 Mon Sep 17 00:00:00 2001 From: Thane Gill Date: Wed, 12 Nov 2025 19:32:49 -0800 Subject: [PATCH] nixos/services.changedetection-io: Add package option --- nixos/modules/services/web-apps/changedetection-io.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/changedetection-io.nix b/nixos/modules/services/web-apps/changedetection-io.nix index 5104c4384e1d..bb0c554e99a4 100644 --- a/nixos/modules/services/web-apps/changedetection-io.nix +++ b/nixos/modules/services/web-apps/changedetection-io.nix @@ -14,6 +14,8 @@ in options.services.changedetection-io = { enable = mkEnableOption "changedetection-io"; + package = lib.mkPackageOption pkgs "changedetection-io" { }; + user = mkOption { default = "changedetection-io"; type = types.str; @@ -151,7 +153,7 @@ in ++ lib.optional cfg.playwrightSupport "PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:${toString cfg.chromePort}/?stealth=1&--disable-web-security=true"; EnvironmentFile = mkIf (cfg.environmentFile != null) cfg.environmentFile; ExecStart = '' - ${pkgs.changedetection-io}/bin/changedetection.py \ + ${cfg.package}/bin/changedetection.py \ -h ${cfg.listenAddress} -p ${toString cfg.port} -d ${cfg.datastorePath} ''; ProtectHome = true;