1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

lib: support gvariant maybe type

Fixes #1397
This commit is contained in:
Robert Helgesson 2020-07-24 16:31:56 +02:00
parent 8ad5580021
commit 83301ca787
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
4 changed files with 30 additions and 1 deletions

View file

@ -77,6 +77,8 @@ in rec {
(map (d: d // { value = d.value.value; }) vdefs)
else if gvar.isTuple sharedDefType && allChecked then
mergeOneOption loc defs
else if gvar.isMaybe sharedDefType && allChecked then
mergeOneOption loc defs
else if gvar.type.string == sharedDefType && allChecked then
types.str.merge loc defs
else if gvar.type.double == sharedDefType && allChecked then