mirror of
https://github.com/davegallant/nix-config
synced 2025-08-08 01:42:28 +00:00
Bump changedetection to 0.38.2
This commit is contained in:
20
common/changedetection.io/default.nix
Normal file
20
common/changedetection.io/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
changedetectionDir = "/var/lib/changedetection.io/";
|
||||
in
|
||||
{
|
||||
systemd.services.changedetection = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
preStart = ''
|
||||
mkdir -p ${changedetectionDir}/datastore
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "forking";
|
||||
ExecStart = "${pkgs.changedetection.io}/bin/changedetection.py -d ${changedetectionDir}/datastore";
|
||||
Restart = "on-failure";
|
||||
WorkingDirectory = "${changedetectionDir}";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user