Skip to content

Commit 2d6c847

Browse files
committed
fix(brave): remove hardware override flags for Nvidia
1 parent 41880bc commit 2d6c847

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

parts/features/apps/brave-browser.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
osConfig,
66
...
77
}: let
8-
isNvidia = osConfig.dendrix.hasNvidia;
98
# Try to focus an existing Brave window on link open so the workspace comes to the foreground
109
braveNiriOpen = pkgs.writeShellApplication {
1110
name = "brave-niri-open";
@@ -17,11 +16,7 @@
1716
if [ -n "''${brave_id:-}" ]; then
1817
niri msg action focus-window --id "$brave_id" >/dev/null 2>&1 || true
1918
fi
20-
exec ${pkgs.brave}/bin/brave ${
21-
if isNvidia
22-
then ""
23-
else "--password-store=seahorse"
24-
} "$@"
19+
exec ${pkgs.brave}/bin/brave --password-store=seahorse "$@"
2520
'';
2621
};
2722
in {

parts/features/desktop/niri/default.nix

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
}:
99
with lib; let
1010
isNumenor = osConfig.dendrix.hostname == "numenor";
11-
isNvidia = osConfig.dendrix.hasNvidia;
1211
isLightTheme = osConfig.specialisation == {};
1312

1413
leftScreen =
@@ -71,10 +70,7 @@
7170

7271
yaml = pkgs.formats.yaml {};
7372

74-
braveWorkProfileCmd =
75-
if isNvidia
76-
then "brave --profile-directory='Profile 1' --enable-features=VaapiVideoDecoder,VaapiVideoEncoder --password-store=seahorse"
77-
else "brave --profile-directory='Profile 1' --password-store=seahorse";
73+
braveWorkProfileCmd = "brave --profile-directory='Profile 1' --password-store=seahorse";
7874

7975
whichKeyConfig = {
8076
font = "Fira Code 14";
@@ -730,11 +726,7 @@
730726
"Mod+w".hotkey-overlay.title = "Which Key Menu";
731727

732728
# Browser
733-
"Mod+b".action = spawn-sh (
734-
if isNvidia
735-
then "brave --profile-directory='Default' --enable-features=VaapiVideoDecoder,VaapiVideoEncoder --password-store=seahorse"
736-
else "brave --profile-directory='Default' --password-store=seahorse"
737-
);
729+
"Mod+b".action = spawn-sh "brave --profile-directory='Default' --password-store=seahorse";
738730
"Mod+b".hotkey-overlay.hidden = true;
739731

740732
# Cliphist via fuzzel

0 commit comments

Comments
 (0)