2022-02-18 20:31:01 +03:00
|
|
|
_: prev: let
|
2021-12-25 16:19:03 +03:00
|
|
|
cliArgs =
|
2021-08-21 18:57:52 +03:00
|
|
|
let
|
|
|
|
flags = [
|
|
|
|
"--flag-switches-begin"
|
2021-12-25 16:19:03 +03:00
|
|
|
"--enable-features=WebUIDarkMode,UseOzonePlatform,WebRTCPipeWireCapturer,IgnoreGPUBlocklist,Vulkan"
|
2021-08-21 18:57:52 +03:00
|
|
|
"--flag-switches-end"
|
|
|
|
"--ozone-platform=wayland"
|
|
|
|
"--enable-webrtc-pipewire-capturer"
|
|
|
|
"--ignore-gpu-blocklist"
|
|
|
|
"--enable-gpu-rasterization"
|
|
|
|
"--enable-zero-copy"
|
|
|
|
"--disable-gpu-driver-bug-workarounds"
|
2021-10-16 12:56:36 +03:00
|
|
|
"--force-dark-mode"
|
2021-12-25 16:19:03 +03:00
|
|
|
"--process-per-site"
|
2021-08-21 18:57:52 +03:00
|
|
|
];
|
|
|
|
in
|
2022-02-18 20:31:01 +03:00
|
|
|
prev.lib.concatStringsSep " " flags;
|
|
|
|
in { chromium = prev.chromium.override { commandLineArgs = cliArgs; }; }
|