From 176c446b97d0c784170586cc465f912e08d623a8 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Wed, 24 Aug 2022 18:45:06 +1000 Subject: [PATCH] launchd: add extra KeepAlive options --- modules/launchd/launchd.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/launchd/launchd.nix b/modules/launchd/launchd.nix index a3ea918..72d3fbb 100644 --- a/modules/launchd/launchd.nix +++ b/modules/launchd/launchd.nix @@ -194,6 +194,21 @@ with lib; ''; }; + Crashed = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + If true, the the job will be restarted as long as it exited due to a signal which is typically + associated with a crash (SIGILL, SIGSEGV, etc.). If false, the job will be restarted in the + inverse condition. + ''; + }; + + AfterInitialDemand = mkOption { + type = types.nullOr types.bool; + default = null; + }; + }; })); default = null;