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.

Home Manager options

stylix.targets.firefox.enable

Whether to enable theming for Firefox.

Type: boolean

Default: same as stylix.autoEnable

Example: false

Declared by:

stylix.targets.firefox.colorTheme.enable

Whether to enable theming for Firefox Color theme .

Type: boolean

Default: false

Example: true

Declared by:

stylix.targets.firefox.firefoxGnomeTheme.enable

Whether to enable theming for Firefox GNOME theme .

Type: boolean

Default: false

Example: true

Declared by:

stylix.targets.firefox.profileNames

The Firefox profile names to apply styling on.

Type: list of string

Default: [ ]

Declared by:

stylix.targets.floorp.enable

Whether to enable theming for Floorp.

Type: boolean

Default: same as stylix.autoEnable

Example: false

Declared by:

stylix.targets.floorp.colorTheme.enable

Whether to enable theming for Firefox Color theme .

Type: boolean

Default: false

Example: true

Declared by:

stylix.targets.floorp.firefoxGnomeTheme.enable

Whether to enable theming for Firefox GNOME theme .

Type: boolean

Default: false

Example: true

Declared by:

stylix.targets.floorp.profileNames

The Floorp profile names to apply styling on.

Type: list of string

Default: [ ]

Declared by:

stylix.targets.librewolf.enable

Whether to enable theming for LibreWolf.

Type: boolean

Default: same as stylix.autoEnable

Example: false

Declared by:

stylix.targets.librewolf.colorTheme.enable

Whether to enable theming for Firefox Color theme .

Type: boolean

Default: false

Example: true

Declared by:

stylix.targets.librewolf.firefoxGnomeTheme.enable

Whether to enable theming for Firefox GNOME theme .

Type: boolean

Default: false

Example: true

Declared by:

stylix.targets.librewolf.profileNames

The LibreWolf profile names to apply styling on.

Type: list of string

Default: [ ]

Declared by:

NixOS options

None provided.