xresources: give properties
option more specific type
This more readily allows merging configurations.
This commit is contained in:
parent
acf106ced0
commit
7bd043e9ee
|
@ -28,7 +28,11 @@ in {
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
xresources.properties = mkOption {
|
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;
|
default = null;
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue