firefox/testbeds: simplify testbed and add firefox-color testbed (#1982)

Link: https://github.com/nix-community/stylix/pull/1982

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
NAHO 2025-11-18 21:20:48 +01:00 committed by GitHub
commit f19ac46f6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 19 deletions

View file

@ -0,0 +1,9 @@
{ lib, ... }:
{
imports = [ ./firefox.nix ];
home-manager.sharedModules = lib.singleton {
stylix.targets.firefox.colorTheme.enable = true;
programs.firefox.profiles.stylix.extensions.force = true;
};
}

View file

@ -1,24 +1,8 @@
{ lib, pkgs, ... }:
let
package = pkgs.firefox;
profileName = "stylix";
in
{ lib, ... }:
{
stylix.testbed.ui.application = {
name = "firefox";
inherit package;
};
imports = [ ./firefox.nix ];
home-manager.sharedModules = lib.singleton {
programs.firefox = {
enable = true;
inherit package;
profiles.${profileName}.isDefault = true;
};
stylix.targets.firefox = {
profileNames = [ profileName ];
firefoxGnomeTheme.enable = true;
};
stylix.targets.firefox.firefoxGnomeTheme.enable = true;
};
}