1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 16:38:34 +02:00

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 ''
{