xfconf: fix type order (#3961)
Submodules must come after strings, otherwise strings are treated as paths and implicitly imported.
This commit is contained in:
parent
6fc82e5697
commit
017302483c
|
@ -75,14 +75,9 @@ in {
|
|||
|
||||
settings = mkOption {
|
||||
type = with types;
|
||||
attrsOf (attrsOf (oneOf [
|
||||
bool
|
||||
int
|
||||
xfIntVariant
|
||||
float
|
||||
str
|
||||
(listOf (oneOf [ bool int xfIntVariant float str ]))
|
||||
])) // {
|
||||
# xfIntVariant must come AFTER str; otherwise strings are treated as submodule imports...
|
||||
let value = oneOf [ bool int float str xfIntVariant ];
|
||||
in attrsOf (attrsOf (either value (listOf value))) // {
|
||||
description = "xfconf settings";
|
||||
};
|
||||
default = { };
|
||||
|
|
Loading…
Reference in a new issue