1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-28 04:39:48 +01:00

polybar: switch from attrs to attrsOf

This commit is contained in:
Nikita Uvarov 2018-12-05 11:54:52 +01:00
parent b085344b91
commit d67835260d
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -6,6 +6,8 @@ let
cfg = config.services.polybar;
eitherStrBoolIntList = with types; either str (either bool (either int (listOf str)));
toPolybarIni = generators.toINI {
mkKeyValue = key: value:
let
@ -57,7 +59,7 @@ in
type = types.coercedTo
types.path
(p: { "section/base" = { include-file = "${p}"; }; })
(types.attrsOf types.attrs);
(types.attrsOf (types.attrsOf eitherStrBoolIntList));
description = ''
Polybar configuration. Can be either path to a file, or set of attributes
that will be used to create the final configuration.