mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-05-20 21:32:33 +02:00
9e24c44c53
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
79 lines
2.2 KiB
Nix
79 lines
2.2 KiB
Nix
{pkgs, ...}: {
|
|
programs.brave = {
|
|
enable = true;
|
|
commandLineArgs = [
|
|
# Wayland Native
|
|
"--enable-features=UseOzonePlatform"
|
|
"--ozone-platform=wayland"
|
|
|
|
# Hardware Acceleration (NVIDIA optimized)
|
|
"--enable-accelerated-video-decode"
|
|
"--enable-gpu-rasterization"
|
|
"--enable-zero-copy"
|
|
"--ignore-gpu-blocklist"
|
|
|
|
# Performance
|
|
"--enable-features=VaapiVideoDecoder"
|
|
"--enable-features=VaapiVideoEncoder"
|
|
"--enable-features=CanvasOopRasterization"
|
|
"--disable-features=UseChromeOSDirectVideoDecoder"
|
|
|
|
# Privacy & Security
|
|
"--disable-features=MediaRouter" # Disable Chromecast
|
|
"--disable-features=OptimizationHints" # No Google suggestions
|
|
"--disable-features=AutofillSavePaymentMethods"
|
|
"--disable-background-networking" # No telemetry
|
|
"--disable-sync" # Manual sync control
|
|
|
|
# Wayland-specific fixes
|
|
"--disable-features=WaylandWpColorManagerV1" # Color management fix
|
|
|
|
# UI/UX
|
|
"--force-dark-mode" # Match Stylix theme
|
|
"--enable-features=WebUIDarkMode"
|
|
"--no-default-browser-check"
|
|
];
|
|
extensions = let
|
|
ids = [
|
|
];
|
|
in
|
|
map (id: {inherit id;}) ids;
|
|
};
|
|
|
|
xdg.configFile."BraveSoftware/Brave-Browser/Policies/managed/policy.json".text = builtins.toJSON {
|
|
BraveShieldsAdControl = 2;
|
|
BraveShieldsTrackersBlocked = 1;
|
|
BraveShieldsHttpsEverywhere = 1;
|
|
BraveRewardsDisabled = 1;
|
|
BraveWalletDisabled = 1;
|
|
BraveVPNDisabled = 1;
|
|
BraveAIChatEnabled = 0;
|
|
PasswordManagerEnabled = 0;
|
|
BravePlaylistEnabled = 0;
|
|
BraveWebDiscoveryEnabled = 0;
|
|
BraveStatsPingEnabled = 0;
|
|
DnsOverHttpsMode = "automatic";
|
|
BraveDarkMode = 1;
|
|
};
|
|
|
|
xdg.desktopEntries = {
|
|
brave-incognito = {
|
|
name = "Brave (Private window)";
|
|
genericName = "Navigateur Web";
|
|
exec = "brave --incognito";
|
|
icon = "brave-browser";
|
|
terminal = false;
|
|
categories = ["Network" "WebBrowser"];
|
|
mimeType = ["text/html" "text/xml"];
|
|
};
|
|
brave-tor = {
|
|
name = "Brave (Private window w/Tor)";
|
|
genericName = "Navigateur Web";
|
|
exec = "brave --tor";
|
|
icon = "brave-browser";
|
|
terminal = false;
|
|
categories = ["Network" "WebBrowser"];
|
|
};
|
|
};
|
|
}
|