Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with JSON-like entries #37

Closed
lbssousa opened this issue Jun 7, 2021 · 3 comments · Fixed by #38
Closed

Trouble with JSON-like entries #37

lbssousa opened this issue Jun 7, 2021 · 3 comments · Fixed by #38
Labels
bug Something isn't working

Comments

@lbssousa
Copy link

lbssousa commented Jun 7, 2021

I have the following settings for my GNOME extension sound-output-device-chooser

[org/gnome/shell/extensions/sound-output-device-chooser]
hide-on-single-device=true
ports-settings='{"version":2,"ports":[]}'

which dcont2nix converts to this:

"org/gnome/shell/extensions/sound-output-device-chooser" = {
  hide-on-single-device = true;
  ports-settings = "'{"version":2,"ports":[]}'";
};

However, when I try to apply a switch in my Home-Manager config, it returns the following error:

error: undefined variable 'version'
@gvolpe
Copy link
Collaborator

gvolpe commented Jun 7, 2021

Does this work with HM?

{
  "org/gnome/shell/extensions/sound-output-device-chooser" = {
    hide-on-single-device = true;
    ports-settings = ''
      {"version":2,"ports":[]}
    '';
  };
}

@lbssousa
Copy link
Author

lbssousa commented Jun 7, 2021

It seems working in this form. Thanks!

@gvolpe gvolpe added the bug Something isn't working label Jun 7, 2021
@gvolpe
Copy link
Collaborator

gvolpe commented Jun 7, 2021

Cool it's a bug in dconf2nix then, it should generate that for you. I'll have a look when I have some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants