add watchdog service
This commit is contained in:
12
modules/watchdog/watchdog.nix
Normal file
12
modules/watchdog/watchdog.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
liminix
|
||||
, lib
|
||||
}:
|
||||
{ watched, headStart } :
|
||||
let
|
||||
inherit (liminix.services) longrun;
|
||||
in longrun {
|
||||
name = "watchdog";
|
||||
run =
|
||||
"HEADSTART=${toString headStart} ${./gaspode.sh} ${lib.concatStringsSep " " (builtins.map (s: s.name) watched)}";
|
||||
}
|
||||
Reference in New Issue
Block a user