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:
commit
f19ac46f6a
2 changed files with 12 additions and 19 deletions
9
modules/firefox/testbeds/firefox-color.nix
Normal file
9
modules/firefox/testbeds/firefox-color.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue