this post was submitted on 16 Jan 2024
2 points (58.3% liked)

nixos

1262 readers
3 users here now

All about NixOS - https://nixos.org/

founded 4 years ago
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 0 points 9 months ago* (last edited 9 months ago) (1 children)

I have this in my config and I use Hyprland:

{
  dconf.settings = {
    "org/gnome/desktop/interface" = {
      color-scheme = "prefer-dark";
    };
  };
}
[โ€“] [email protected] 2 points 9 months ago

Thank you for the comment, this is not what I'm looking for however. I want a) a dynamic system theme (I already can manually change it to "dark") which I use a Gnome extension for and b) that Firefox follows the system theme.