nix-community / dconf2nix

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

Fails if header contains `_` #57

Closed meain closed 2 years ago

meain commented 2 years ago

Buit from master(a7ce58161e)

Input:

[org/gnome/shell/extensions/bluetooth_battery_indicator]
devices=['{"_model":{},"name":"FakeName","isConnected":false,"isPaired":true,"mac":"00:16:00:29:00:83","isDefault":false,"active":true,"icon":"audio-headphones-symbolic"}']
hide-indicator=true

Error:

dconf2nix: "<stdin>" (line 1, column 38):
unexpected "_"
expecting letter or digit, " ]" or "]"
CallStack (from HasCallStack):
  error, called at src/DConf2Nix.hs:35:16 in dconf2nix-0.0.11-5IC5PdwirMmE518swqY2Y3:DConf2Nix