xresources: give properties option more specific type

This more readily allows merging configurations.
This commit is contained in:
Robert Helgesson 2020-02-29 22:32:52 +01:00
parent acf106ced0
commit 7bd043e9ee
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -28,7 +28,11 @@ in {
options = {
xresources.properties = mkOption {
type = types.nullOr types.attrs;
type = with types;
let
prim = either bool (either int str);
entry = either prim (listOf prim);
in nullOr (attrsOf entry);
default = null;
example = literalExample ''
{