polybar: switch from attrs to attrsOf
(cherry picked from commit d67835260d
)
This commit is contained in:
parent
48ba1010ab
commit
c2646f9f2b
|
@ -6,6 +6,8 @@ let
|
||||||
|
|
||||||
cfg = config.services.polybar;
|
cfg = config.services.polybar;
|
||||||
|
|
||||||
|
eitherStrBoolIntList = with types; either str (either bool (either int (listOf str)));
|
||||||
|
|
||||||
toPolybarIni = generators.toINI {
|
toPolybarIni = generators.toINI {
|
||||||
mkKeyValue = key: value:
|
mkKeyValue = key: value:
|
||||||
let
|
let
|
||||||
|
@ -57,7 +59,7 @@ in
|
||||||
type = types.coercedTo
|
type = types.coercedTo
|
||||||
types.path
|
types.path
|
||||||
(p: { "section/base" = { include-file = "${p}"; }; })
|
(p: { "section/base" = { include-file = "${p}"; }; })
|
||||||
(types.attrsOf types.attrs);
|
(types.attrsOf (types.attrsOf eitherStrBoolIntList));
|
||||||
description = ''
|
description = ''
|
||||||
Polybar configuration. Can be either path to a file, or set of attributes
|
Polybar configuration. Can be either path to a file, or set of attributes
|
||||||
that will be used to create the final configuration.
|
that will be used to create the final configuration.
|
||||||
|
|
Loading…
Reference in a new issue