11.stylix/modules/firefox/testbeds/default.nix
bricked de4ee58990
firefox: add gnome-theme testbed (#879)
Add a gnome-theme testbed and extract the profile name in the default
testbed.

Link: https://github.com/danth/stylix/pull/879

Co-authored-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-28 20:12:14 +01:00

23 lines
421 B
Nix

{ lib, pkgs, ... }:
let
package = pkgs.firefox;
profileName = "stylix";
in
{
stylix.testbed.application = {
enable = true;
name = "firefox";
inherit package;
};
home-manager.sharedModules = lib.singleton {
programs.firefox = {
enable = true;
inherit package;
profiles.${profileName}.isDefault = true;
};
stylix.targets.firefox.profileNames = [ profileName ];
};
}