mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop/Browser] Optimize chromium hardware acceleration features if unsafeOptimizations are enabled
This commit is contained in:
parent
afd81d1d96
commit
2e2d287ea6
1 changed files with 7 additions and 0 deletions
|
|
@ -67,6 +67,13 @@ in {
|
|||
};
|
||||
|
||||
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 ++ [
|
||||
"--ignore-gpu-blacklist"
|
||||
"--enable-gpu-rasterization" "--enable-accelerated-mjpeg-decode"
|
||||
"--enable-accelerated-video" "--canvas-oop-rasterization"
|
||||
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder" "--disable-features=UseChromeOSDirectVideoDecoder"
|
||||
]);
|
||||
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
# https://docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/enterprise/auto-update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue