mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
polybar: use recursive config type (#2235)
Allow merging of lists and attrsets
This commit is contained in:
parent
2dcd9eb021
commit
a7c5b00d44
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = types.attrsOf types.attrs;
|
type = with types;
|
||||||
|
let ty = oneOf [ bool int float str (listOf ty) (attrsOf ty) ];
|
||||||
|
in attrsOf (attrsOf ty // { description = "attribute sets"; });
|
||||||
description = ''
|
description = ''
|
||||||
Polybar configuration. This takes a nix attrset and converts it to the
|
Polybar configuration. This takes a nix attrset and converts it to the
|
||||||
strange data format that polybar uses.
|
strange data format that polybar uses.
|
||||||
|
|
Loading…
Reference in a new issue