firefox/testbeds/gnome: simplify by extending default testbed

This commit is contained in:
Daniel Thwaites 2025-11-18 11:35:26 -08:00 committed by NAHO
parent 8c0640d572
commit 10a59f5cff
No known key found for this signature in database
GPG key ID: BFB5D5E3F4C95185

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;
};
}