nix-community / dconf2nix

:feet: Convert dconf files (e.g. GNOME Shell) to Nix, as expected by Home Manager [maintainer=@jtojnar]
Apache License 2.0
218 stars 6 forks source link

support a{sv} types #82

Closed theotheroracle closed 11 months ago

theotheroracle commented 11 months ago

The Problem

right now dconf2nix interprets a{sv} types as strings, but putting quotes around them makes them interpreted as strings which will not be interpreted

The Solution

understand a{sv} types, for example

{'org.wezfurlong.wezterm': <{'padding': <{'left': <uint32 13>, 'right': <uint32 14>, 'top': <uint32 29>, 'bottom': <uint32 13>}>, 'keep_rounded_corners': <{'maximized': <false>, 'fullscreen': <false>}>, 'border_radius': <uint32 12>, 'smoothing': <uint32 0>, 'enabled': <true>}>}

Alternatives

i can't think of one

Additional context

support for a{sv} types may also need to be added to home manager, in the form of sets as accepted datatypes possibly ?

Happens in the latest version

theotheroracle commented 11 months ago

i think this might be a duplicate of #71