less: enable options to be specified multiple times
This commit is contained in:
parent
4767a9c719
commit
07d79726f1
3 changed files with 18 additions and 9 deletions
|
|
@ -37,11 +37,14 @@ in
|
|||
options = lib.mkOption {
|
||||
type =
|
||||
with lib.types;
|
||||
attrsOf (oneOf [
|
||||
bool
|
||||
int
|
||||
str
|
||||
]);
|
||||
let
|
||||
scalar = oneOf [
|
||||
bool
|
||||
int
|
||||
str
|
||||
];
|
||||
in
|
||||
attrsOf (either scalar (listOf scalar));
|
||||
default = { };
|
||||
description = "GNU-style options to be set via {env}`$LESS`.";
|
||||
example = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue