diff options
Diffstat (limited to 'nixpkgs/nixos/lib/systemd-unit-options.nix')
-rw-r--r-- | nixpkgs/nixos/lib/systemd-unit-options.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nixpkgs/nixos/lib/systemd-unit-options.nix b/nixpkgs/nixos/lib/systemd-unit-options.nix index 9c69bda471bb..df05d165d9e8 100644 --- a/nixpkgs/nixos/lib/systemd-unit-options.nix +++ b/nixpkgs/nixos/lib/systemd-unit-options.nix @@ -74,6 +74,15 @@ in rec { ''; }; + upheldBy = mkOption { + default = []; + type = types.listOf unitNameType; + description = lib.mdDoc '' + Keep this unit running as long as the listed units are running. This is a continuously + enforced version of wantedBy. + ''; + }; + wantedBy = mkOption { default = []; type = types.listOf unitNameType; @@ -147,6 +156,14 @@ in rec { ''; }; + upholds = mkOption { + default = []; + type = types.listOf unitNameType; + description = lib.mdDoc '' + Keeps the specified running while this unit is running. A continuous version of `wants`. + ''; + }; + after = mkOption { default = []; type = types.listOf unitNameType; |