systemd: accept derivations as values for systemd options (#3974)
This commit is contained in:
parent
6be873663e
commit
d97e8f8861
2 changed files with 10 additions and 6 deletions
|
|
@ -51,7 +51,7 @@ let
|
|||
|
||||
unitType = unitKind:
|
||||
with types;
|
||||
let primitive = either bool (either int str);
|
||||
let primitive = oneOf [ bool int str path ];
|
||||
in attrsOf (attrsOf (attrsOf (either primitive (listOf primitive)))) // {
|
||||
description = "systemd ${unitKind} unit configuration";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue