refactor: better handle chromium flags, add privacy redirect

This commit is contained in:
dusk 2021-04-23 22:53:45 +03:00
parent ee1d288dce
commit a8320e7798
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -39,9 +39,22 @@ let
file
];
chromiumWayland = pkgs.writeScriptBin "chromium-wayland" ''
chromiumWayland =
let
flags = [
"--enable-features=UseOzonePlatform"
"--ozone-platform=wayland"
"--enable-vulkan"
"--enable-webrtc-pipewire-capturer"
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-zero-copy"
"--disable-gpu-driver-bug-workarounds"
];
in
pkgs.writeScriptBin "chromium-wayland" ''
#!${pkgs.stdenv.shell}
chromium --enable-features=UseOzonePlatform --ozone-platform=wayland
chromium ${lib.concatStringsSep " " flags}
'';
chromiumWaylandPkg = with pkgs;
let name = "chromium-wayland"; in
@ -246,6 +259,7 @@ in
ripcord
audacity
krita
gimp
kdenlive
gnome3.seahorse
gnome3.gnome-boxes
@ -398,6 +412,7 @@ in
"annfbnbieaamhaimclajlajpijgkdblo" # dark theme
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # dark reader
"hlepfoohegkhhmjieoechaddaejaokhf" # github refined
"pmcmeagblkinmogikoikkdjiligflglb" # privacy redirect
];
};
qutebrowser = {