added environment variable, added extra brower flags
This commit is contained in:
parent
cf6aab2897
commit
31970f4a71
@ -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,
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user