diff --git a/home/browser.nix b/home/browser.nix index 90152de..649b903 100644 --- a/home/browser.nix +++ b/home/browser.nix @@ -10,7 +10,15 @@ programs.chromium = { 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 createChromiumExtensionFor = browserVersion: { id, diff --git a/home/default.nix b/home/default.nix index a455b83..872f13f 100644 --- a/home/default.nix +++ b/home/default.nix @@ -42,6 +42,7 @@ in { XDG_CACHE_HOME = "$HOME/.cache"; XDG_DATA_HOME = "$HOME/.local/share"; XDG_STATE_HOME = "$HOME/.local/state"; + NIXOS_OZONE_WL = "1"; }; pointerCursor = lib.mkIf pkgs.stdenv.isLinux {