1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

polybar: use recursive config type (#2235)

Allow merging of lists and attrsets
This commit is contained in:
arcnmx 2021-11-15 13:00:45 -08:00 committed by GitHub
parent 2dcd9eb021
commit a7c5b00d44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,9 @@ in {
};
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 = ''
Polybar configuration. This takes a nix attrset and converts it to the
strange data format that polybar uses.