mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
kodi: make type for settings less restrictive (#5277)
Allow list of attrset in the kodi settings to be able to define path substitutions.
This commit is contained in:
@@ -165,9 +165,15 @@ in
|
||||
type =
|
||||
with types;
|
||||
let
|
||||
valueType = either str (attrsOf valueType) // {
|
||||
description = "attribute sets of strings";
|
||||
};
|
||||
valueType =
|
||||
oneOf [
|
||||
str
|
||||
(attrsOf valueType)
|
||||
(listOf valueType)
|
||||
]
|
||||
// {
|
||||
description = "attribute sets or lists of strings";
|
||||
};
|
||||
in
|
||||
nullOr valueType;
|
||||
default = null;
|
||||
|
||||
Reference in New Issue
Block a user