mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop/Browser] improve Chromium GPU usage + Wayland compatibility
This commit is contained in:
parent
12bf9ea325
commit
d87a488a7e
1 changed files with 13 additions and 4 deletions
|
|
@ -66,12 +66,21 @@ in {
|
|||
"${manifestFile}";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
NIXOS_OZONE_WL = mkIf generalCfg.unsafeOptimizations "1";
|
||||
};
|
||||
|
||||
aviallon.desktop.browser.chromium.overrides.commandLineArgs = cfg.browser.chromium.commandLineArgs;
|
||||
aviallon.desktop.browser.chromium.commandLineArgs = mkIf generalCfg.unsafeOptimizations (options.aviallon.desktop.browser.chromium.commandLineArgs.default ++ [
|
||||
"--flag-switches-begin"
|
||||
"--ignore-gpu-blacklist"
|
||||
"--enable-gpu-rasterization" "--enable-accelerated-mjpeg-decode"
|
||||
"--enable-accelerated-video" "--canvas-oop-rasterization"
|
||||
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder" "--disable-features=UseChromeOSDirectVideoDecoder"
|
||||
"--enable-gpu-rasterization"
|
||||
"--enable-accelerated-mjpeg-decode"
|
||||
"--enable-accelerated-video"
|
||||
"--canvas-oop-rasterization"
|
||||
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder"
|
||||
"--disable-features=UseChromeOSDirectVideoDecoder"
|
||||
"--flag-switches-end"
|
||||
]);
|
||||
|
||||
programs.chromium = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue