diff options
author | Nikita Uvarov <uv.nikita@gmail.com> | 2018-12-05 11:54:52 +0100 |
---|---|---|
committer | Nikita Uvarov <uv.nikita@gmail.com> | 2018-12-05 12:14:43 +0100 |
commit | d67835260dbdbc0fc3fc735871ec26a2421ac1b2 (patch) | |
tree | 738b563ff248cbe4b9d057e82c98aa90c696d275 | |
parent | b085344b91834004c35d5de7dde0715c870bf424 (diff) |
polybar: switch from attrs to attrsOf
-rw-r--r-- | modules/services/polybar.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/services/polybar.nix b/modules/services/polybar.nix index e94f7f22097..82ae27b1661 100644 --- a/modules/services/polybar.nix +++ b/modules/services/polybar.nix @@ -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. |