11.stylix/modules/firefox
Daniel Thwaites ebdcc2a190
doc: add module README for Firefox and derivatives (#897)
Link: https://github.com/danth/stylix/pull/897

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-24 19:10:45 +01:00
..
testbeds stylix: support multiple testbeds per module (#858) 2025-02-17 12:56:46 +00:00
hm.nix firefox: add colorTheme.enable option (#881) 2025-02-22 17:27:39 +01:00
README.md doc: add module README for Firefox and derivatives (#897) 2025-02-24 19:10:45 +01:00
userChrome.mustache firefox: add firefoxGnomeTheme.enable option (#702) 2025-01-06 23:18:49 +01:00

Firefox and its derivatives

This module supports Firefox, in addition to Floorp and LibreWolf, which are Firefox derivatives.

The same implementation is shared between all of these browsers, but they don't share option values.

Important

For any theming to be applied, you need to tell this module which profiles you're using:

{
  programs.firefox = {
    enable = true;

    profiles = {
      my-profile = {
        # bookmarks, extensions, search engines...
      };
      my-friends-profile = {
        # bookmarks, extensions, search engines...
      };
    };
  };

  stylix.targets.firefox.profileNames = [ "my-profile" "my-friends-profile" ];
}

This is necessary due to a limitation of the module system: we can either detect the list of profiles, or change their configuration, but we can't do both without infinite recursion.