liminix-fork/modules/watchdog/watchdog.nix
2023-09-02 17:28:40 +01:00

12 lines
250 B
Nix

{
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)}";
}