mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 22:50:39 +00:00
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
1 changed files with 3 additions and 8 deletions
|
@ -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