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,10 +39,23 @@ let
file file
]; ];
chromiumWayland = pkgs.writeScriptBin "chromium-wayland" '' chromiumWayland =
#!${pkgs.stdenv.shell} let
chromium --enable-features=UseOzonePlatform --ozone-platform=wayland 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 ${lib.concatStringsSep " " flags}
'';
chromiumWaylandPkg = with pkgs; chromiumWaylandPkg = with pkgs;
let name = "chromium-wayland"; in let name = "chromium-wayland"; in
stdenv.mkDerivation { stdenv.mkDerivation {
@ -246,6 +259,7 @@ in
ripcord ripcord
audacity audacity
krita krita
gimp
kdenlive kdenlive
gnome3.seahorse gnome3.seahorse
gnome3.gnome-boxes gnome3.gnome-boxes
@ -398,6 +412,7 @@ in
"annfbnbieaamhaimclajlajpijgkdblo" # dark theme "annfbnbieaamhaimclajlajpijgkdblo" # dark theme
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # dark reader "eimadpbcbfnmbkopoojfekhnkhdbieeh" # dark reader
"hlepfoohegkhhmjieoechaddaejaokhf" # github refined "hlepfoohegkhhmjieoechaddaejaokhf" # github refined
"pmcmeagblkinmogikoikkdjiligflglb" # privacy redirect
]; ];
}; };
qutebrowser = { qutebrowser = {