Add an option for BindsTo dependencies
This commit is contained in:
parent
6b185a131f
commit
17a7f48364
@ -47,6 +47,15 @@ rec {
|
||||
'';
|
||||
};
|
||||
|
||||
bindsTo = mkOption {
|
||||
default = [];
|
||||
types = types.listOf types.string;
|
||||
description = ''
|
||||
Like ‘requires’, but in addition, if the specified units
|
||||
unexpectedly disappear, this unit will be stopped as well.
|
||||
'';
|
||||
};
|
||||
|
||||
partOf = mkOption {
|
||||
default = [];
|
||||
types = types.listOf types.string;
|
||||
|
@ -174,6 +174,7 @@ let
|
||||
Wants = concatStringsSep " " config.wants;
|
||||
After = concatStringsSep " " config.after;
|
||||
Before = concatStringsSep " " config.before;
|
||||
BindsTo = concatStringsSep " " config.bindsTo;
|
||||
PartOf = concatStringsSep " " config.partOf;
|
||||
} // optionalAttrs (config.description != "") {
|
||||
Description = config.description;
|
||||
|
Loading…
Reference in New Issue
Block a user