difftastic: allow repeating options
The type was overly restrictive, see https://github.com/nix-community/home-manager/pull/7947/changes#r2858054388
This commit is contained in:
parent
2a39b0828b
commit
f3a30376bb
2 changed files with 13 additions and 6 deletions
|
|
@ -67,11 +67,14 @@ in
|
|||
options = mkOption {
|
||||
type =
|
||||
with types;
|
||||
attrsOf (oneOf [
|
||||
str
|
||||
int
|
||||
bool
|
||||
]);
|
||||
let
|
||||
atom = oneOf [
|
||||
str
|
||||
int
|
||||
bool
|
||||
];
|
||||
in
|
||||
attrsOf (either atom (listOf atom));
|
||||
default = { };
|
||||
example = {
|
||||
color = "dark";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue