more chromium flags

This commit is contained in:
notgne2 2022-01-17 13:58:28 -07:00
parent a00983323f
commit 5ab514b46a
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8

View File

@ -556,9 +556,22 @@ in
programs.chromium = { programs.chromium = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
package = lib.mkDefault ((pkgs.ungoogled-chromium.overrideAttrs (old: { package = lib.mkDefault ((pkgs.ungoogled-chromium.overrideAttrs (old: {
patches = [ ../data/chromium-dark.patch ]; patches = [
../data/chromium-dark.patch
];
})).override { })).override {
commandLineArgs = "--enable-features=UseOzonePlatform,WebUIDarkMode --ozone-platform=wayland --force-dark-mode"; commandLineArgs = lib.concatStringsSep " " [
# I think if the dark patch worked, this should be removed, it doesn't seem to...
"--force-dark-mode"
"--enable-features=UseOzonePlatform,WebUIDarkMode,VaapiVideoDecoder"
"--ozone-platform=wayland"
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-zero-copy"
"--disable-gpu-driver-bug-workarounds"
"--use-gl=egl"
];
}); });
}; };
@ -611,7 +624,6 @@ in
config = { config = {
profile = lib.mkDefault "gpu-hq"; profile = lib.mkDefault "gpu-hq";
ytdl-format = lib.mkDefault "bestvideo+bestaudio"; ytdl-format = lib.mkDefault "bestvideo+bestaudio";
cache-default = lib.mkDefault 4000000;
}; };
}; };