summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd-unit-options.nix
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2015-11-16 15:07:10 +0100
committerJaka Hudoklin <jakahudoklin@gmail.com>2015-11-16 15:12:28 +0100
commitb9291616a6d7c3747f45c7d519a4da03a17a514e (patch)
treee8062ef4d438606366827c6a1e2102dc65514e72 /nixos/modules/system/boot/systemd-unit-options.nix
parent88f5cfc1268dfd75556f8d890d841efe56243fd4 (diff)
downloadnixpkgs-b9291616a6d7c3747f45c7d519a4da03a17a514e.tar
nixpkgs-b9291616a6d7c3747f45c7d519a4da03a17a514e.tar.gz
nixpkgs-b9291616a6d7c3747f45c7d519a4da03a17a514e.tar.bz2
nixpkgs-b9291616a6d7c3747f45c7d519a4da03a17a514e.tar.lz
nixpkgs-b9291616a6d7c3747f45c7d519a4da03a17a514e.tar.xz
nixpkgs-b9291616a6d7c3747f45c7d519a4da03a17a514e.tar.zst
nixpkgs-b9291616a6d7c3747f45c7d519a4da03a17a514e.zip
systemd module: Add OnFailure to systemd common unit options
Diffstat (limited to 'nixos/modules/system/boot/systemd-unit-options.nix')
-rw-r--r--nixos/modules/system/boot/systemd-unit-options.nix9
1 files changed, 9 insertions, 0 deletions
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.
+      '';
+    };
+
   };