WIP: Switch to ungoogled-chromium #9

Draft
wymiller wants to merge 3 commits from chromium-switch into master
2 changed files with 10 additions and 1 deletions
Showing only changes of commit 31970f4a71 - Show all commits

View File

@ -10,7 +10,15 @@
programs.chromium = { programs.chromium = {
enable = pkgs.stdenv.isLinux; enable = pkgs.stdenv.isLinux;
package = pkgs.ungoogled-chromium; package = pkgs.ungoogled-chromium.override {
enableWideVine = true;
commandLineArgs = [
"--enable-features=AcceleratedVideoEncoder,VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport,UseMultiPlaneFormatForHardwareVideo"
"--ignore-gpu-blocklist"
"--force-dark-mode"
"--enable-zero-copy"
];
};
extensions = let extensions = let
createChromiumExtensionFor = browserVersion: { createChromiumExtensionFor = browserVersion: {
id, id,

View File

@ -42,6 +42,7 @@ in {
XDG_CACHE_HOME = "$HOME/.cache"; XDG_CACHE_HOME = "$HOME/.cache";
XDG_DATA_HOME = "$HOME/.local/share"; XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state"; XDG_STATE_HOME = "$HOME/.local/state";
NIXOS_OZONE_WL = "1";
}; };
pointerCursor = lib.mkIf pkgs.stdenv.isLinux { pointerCursor = lib.mkIf pkgs.stdenv.isLinux {