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

Use mkDouble for doubles #98

Closed jtojnar closed 1 month ago

jtojnar commented 2 months ago

Type of bug

Other (please add details in additional context)

Version

0.1.1

Did you test against master?

Error message (if not timeout)

No response

DConf input

[org/gnome/shell/world-clocks]
locations=[<(uint32 2, <('San Francisco', 'KSFO', false, [(0.65658801258494626, -2.1356672871875406)], [(0.65658801258494626, -2.1356672871875406)])>)>, <(uint32 2, <('New York', 'KNYC', true, [(0.71180344078725644, -1.2909618758762367)], [(0.71059804659265924, -1.2916478949920254)])>)>, <(uint32 2, <('Coordinated Universal Time (UTC)', '@UTC', false, @a(dd) [], @a(dd) [])>)>, <(uint32 2, <('Prague', 'LKKB', true, [(0.87478393392930087, 0.25383384995537522)], [(0.87411906122272931, 0.25249097093961048)])>)>, <(uint32 2, <('Sydney', 'YSSY', true, [(-0.59253928105207498, 2.6386469349889961)], [(-0.59137572239964786, 2.6392287230418559)])>)>]

Additional context

Even though Nix uses float64 internally, it cannot print it correctly: https://github.com/NixOS/nix/issues/5733#issuecomment-1529002378 This reportedly leads to values being rewritten https://github.com/nix-community/dconf2nix/issues/85#issuecomment-2075913559