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}";
|
"${manifestFile}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
NIXOS_OZONE_WL = mkIf generalCfg.unsafeOptimizations "1";
|
||||||
|
};
|
||||||
|
|
||||||
aviallon.desktop.browser.chromium.overrides.commandLineArgs = cfg.browser.chromium.commandLineArgs;
|
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 ++ [
|
aviallon.desktop.browser.chromium.commandLineArgs = mkIf generalCfg.unsafeOptimizations (options.aviallon.desktop.browser.chromium.commandLineArgs.default ++ [
|
||||||
"--ignore-gpu-blacklist"
|
"--flag-switches-begin"
|
||||||
"--enable-gpu-rasterization" "--enable-accelerated-mjpeg-decode"
|
"--ignore-gpu-blacklist"
|
||||||
"--enable-accelerated-video" "--canvas-oop-rasterization"
|
"--enable-gpu-rasterization"
|
||||||
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder" "--disable-features=UseChromeOSDirectVideoDecoder"
|
"--enable-accelerated-mjpeg-decode"
|
||||||
|
"--enable-accelerated-video"
|
||||||
|
"--canvas-oop-rasterization"
|
||||||
|
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder"
|
||||||
|
"--disable-features=UseChromeOSDirectVideoDecoder"
|
||||||
|
"--flag-switches-end"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue