How to enable system theme for Firefox?

cross-posted from: https://feddit.de/post/7895009

I'm a semi-recent NixOS user and one thing that bothers me since the beginning is that when I change the Gnome theme (between light and dark), Firefox doesn't adapt. The system theme in Firefox is enabled, but it always displays the light theme, no matter what theme is selected in Gnome.

Internet search, including searching through NixOS discourse, packages, options and Nixpkgs repo surfaced a solution.

Any ideas or tips how to achieve system theme integration for Firefox on NixOS?

NixOS 23.11 / Gnome 45 / sway

5 points · 4 comments · view on lemmy.world

4 Comments

snowe@programming.dev · 2 pts · 2y (4 replies)

Check that you don’t have fingerprinting turned off. System theme will not work without it.

0xCAFE@feddit.de · 1 pts · 2y (3 replies)

Oh, I didn't know that. Can you point me to some relevant documentation by any chance? Would love to sort that one out.

tyler@programming.dev · 1 pts · 2y
[ removed ]
snowe@programming.dev · 1 pts · 2y (1 reply)
0xCAFE@feddit.de · 2 pts · 2y

Thank you. I think that was not the issue though. I could fix it by removing an environment variable which told the system I was using sway (XDG_CURRENT_DESKTOP = "sway";).