Stylix firefox profile names

This commit is contained in:
DashieTM 2025-05-02 12:00:05 +02:00
parent 5b13d145ad
commit e657564ef7
4 changed files with 30 additions and 21 deletions

View file

@ -80,6 +80,12 @@
};
config = lib.mkIf (config.mods.browser.firefox.enable || config.mods.homePackages.browser == "firefox") (
lib.optionalAttrs (options ? programs.firefox.profiles) {
stylix.targets.firefox.profileNames =
map (
{name, ...}:
name
)
config.mods.browser.firefox.profiles;
programs.firefox = {
enable = true;
policies = config.mods.browser.firefox.configuration;

View file

@ -87,7 +87,7 @@
(lib.mkIf config.mods.gpu.vapi.enable pkgs.libvdpau-va-gl)
(lib.mkIf config.mods.gpu.vapi.enable pkgs.libva)
(lib.mkIf config.mods.gpu.vapi.enable pkgs.vaapiVdpau)
(lib.mkIf (config.mods.gpu.intelgpu.enable || config.mods.gpu.amdgpu.enable) pkgs.mesa.drivers)
(lib.mkIf (config.mods.gpu.intelgpu.enable || config.mods.gpu.amdgpu.enable) pkgs.mesa)
];
rocmPackages = [
pkgs.rocmPackages.clr.icd

View file

@ -10,8 +10,8 @@
hyprland = {
anyrun = {
enable = lib.mkOption {
default = true;
example = false;
default = false;
example = true;
type = lib.types.bool;
description = "Enables anyrun";
};

View file

@ -124,8 +124,8 @@ in {
settings =
if config.mods.hyprland.useDefaultConfig
then
(
lib.recursiveUpdate
lib.mkMerge
[
{
"$mod" = "SUPER";
@ -148,12 +148,13 @@ in {
"$mod SUPER,T,exec,kitty -1"
"$mod SUPER,E,exec,nautilus -w"
"$mod SUPER,N,exec,neovide"
"$mod SUPER,M,exec,oxidash"
"$mod SUPER,R,exec,anyrun"
"$mod SUPER,G,exec,oxicalc"
"$mod SUPER,D,exec,oxishut"
"$mod SUPER,A,exec,oxipaste-iced"
"$mod SUPERSHIFT,P,exec,hyprdock --gui"
(lib.mkIf (config.mods.hyprland.anyrun.enable) "$mod SUPER,R,exec,anyrun")
(lib.mkIf (config.mods.oxi.oxirun.enable) "$mod SUPER,R,exec,oxirun")
(lib.mkIf (config.mods.oxi.oxidash.enable) "$mod SUPER,M,exec,oxidash")
(lib.mkIf (config.mods.oxi.oxicalc.enable) "$mod SUPER,G,exec,oxicalc")
(lib.mkIf (config.mods.oxi.oxishut.enable) "$mod SUPER,D,exec,oxishut")
(lib.mkIf (config.mods.oxi.oxipaste.enable) "$mod SUPER,A,exec,oxipaste-iced")
(lib.mkIf (config.mods.oxi.hyprdock.enable) "$mod SUPERSHIFT,P,exec,hyprdock --gui")
"$mod SUPERSHIFT,L,exec, playerctl -a pause & hyprlock & systemctl suspend"
"$mod SUPERSHIFT,K,exec, playerctl -a pause & hyprlock & systemctl hibernate"
@ -375,7 +376,8 @@ in {
++ config.mods.hyprland.extraAutostart;
plugin =
lib.recursiveUpdate
lib.mkMerge
[
{
hyprspace = lib.mkIf config.mods.hyprland.hyprspaceEnable {
bind = [
@ -383,10 +385,11 @@ in {
];
};
}
config.mods.hyprland.pluginConfig;
config.mods.hyprland.pluginConfig
];
}
config.mods.hyprland.customConfig
)
]
else lib.mkForce config.mods.hyprland.customConfig;
plugins =
[