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

Quoted values appear double quoted #41

Closed johanbrandhorst closed 3 years ago

johanbrandhorst commented 3 years ago

The following input:

[org/gnome/evince]
document-directory="@ms 'file:///home/user/Downloads'"

Produces the following (invalid?) output:

# Generated via dconf2nix: https://github.com/gvolpe/dconf2nix
{ lib, ... }:

let
  mkTuple = lib.hm.gvariant.mkTuple;
in
{
  dconf.settings = {
    "org/gnome/evince" = {
      document-directory = ""@ms 'file:///home/user/Downloads'"";
    };
  };
}
gvolpe commented 3 years ago

Thanks for the report, @johanbrandhorst ! You always manage to find unsupported cases! 😄

johanbrandhorst commented 3 years ago

I can confirm that current master outputs a valid, loadable dconf.nix for me, thanks for all your great work ❤️!