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

Dconf2nix hangs (see #52 and #53) #51

Closed Krutonium closed 2 years ago

Krutonium commented 2 years ago

Alright so I made a dump of my dconf as described in readme, then I fed it to the tool, it timed out so I gave it a longer timeout .

Then my system got super laggy so I opened htop to find it using most of my systems 32 GB of memory. Will attach dconf file once my computer is usable again.IMG_20211210_191611.jpg

Krutonium commented 2 years ago

dconf.settings.txt

gvolpe commented 2 years ago

Please, indicate the dconf2nix version.

It does not hang on 0.0.8 or newer versions, but it fails with some other errors. The first one is because of this entry:

[gnome.desktop.interface]
cursor-theme='Yaru'

It uses . instead of /, which is not supported by dconf2nix (and it won't be for now), see https://github.com/gvolpe/dconf2nix/issues/47

The other two errors happen because of #52 and #53, which I just reproduced and raised.

gvolpe commented 2 years ago

FWIW 90 seconds of timeout is too much. The default is 5 seconds, which should be enough.

Krutonium commented 2 years ago

I know, but I was curious if more time would let it finish. TL;DR it did not.

gvolpe commented 2 years ago

@Krutonium can you indicate which version? It finishes for me with a timeout in 0.0.8 and 0.0.10.

Also, can you tell what application generates this entry? Seems like a gtk theme or so.

[gnome.desktop.interface]
cursor-theme='Yaru'

I'm considering adding support for #47, as now there are two reported cases.

gvolpe commented 2 years ago

Closing this as the original issues #52 and #53 have been fixed.

Krutonium commented 2 years ago

Yeah it times out for me too, eventually lol.

As for the entry with the periods, that's how the value gets inserted if you do it via bash and use the wrong separator, at least for me. That said, it does seem to work just fine?

0.0.8 btw