liminix/modules/watchdog/watchdog.nix

14 lines
276 B
Nix
Raw Permalink Normal View History

2023-09-02 18:28:40 +02:00
{
liminix
, lib
, s6
2023-09-02 18:28:40 +02:00
}:
{ watched, headStart } :
let
inherit (liminix.services) longrun;
in longrun {
name = "watchdog";
run =
"PATH=${s6}/bin:$PATH HEADSTART=${toString headStart} ${./gaspode.sh} ${lib.concatStringsSep " " (builtins.map (s: s.name) watched)}";
2023-09-02 18:28:40 +02:00
}