From b9291616a6d7c3747f45c7d519a4da03a17a514e Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Mon, 16 Nov 2015 15:07:10 +0100 Subject: systemd module: Add OnFailure to systemd common unit options --- nixos/modules/system/boot/systemd-unit-options.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nixos/modules/system/boot/systemd-unit-options.nix') diff --git a/nixos/modules/system/boot/systemd-unit-options.nix b/nixos/modules/system/boot/systemd-unit-options.nix index a7a334dec28..d4cab93b26b 100644 --- a/nixos/modules/system/boot/systemd-unit-options.nix +++ b/nixos/modules/system/boot/systemd-unit-options.nix @@ -170,6 +170,15 @@ in rec { ''; }; + onFailure = mkOption { + default = []; + type = types.listOf types.str; + description = '' + A list of one or more units that are activated when + this unit enters the "failed" state. + ''; + }; + }; -- cgit 1.4.1