Chromium: Difference between revisions
m
no edit summary
imported>Primeos dev (Start documenting how to override Chromium (a frequently asked question)) |
mNo edit summary |
||
(12 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
== Installation == | |||
=== NixOS === | |||
Add {{nixos:package|chromium}} to {{NixOS Manual|name=systemPackages|anchor=#sec-package-management}}. | |||
== | == Accelerated video playback == | ||
Make sure [[Accelerated Video Playback]] is setup on the system properly. Check {{ic|chrome://gpu}} to see if Chromium has enabled hardware acceleration. | |||
If accelerated video playback is not working, check relevant flags at {{ic|chrome://flags}}, or enable them using the cli: | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
< | |||
{ | { | ||
environment.systemPackages = with pkgs; [ | |||
(chromium.override { | |||
commandLineArgs = [ | |||
"--enable-features=VaapiVideoDecodeLinuxGL" | |||
"--ignore-gpu-blocklist" | |||
"--enable-zero-copy" | |||
]; | |||
}) | |||
]; | |||
} | |||
</nowiki>}} | |||
== Enabling native Wayland support == | |||
You can turn on native Wayland support in all chrome and most electron apps by setting an environment variable: <code>environment.sessionVariables.NIXOS_OZONE_WL = "1"</code>. | |||
== Enabling DRM (Widevine support) == | |||
By default, {{nixos:package|chromium}} does not support playing DRM protected media. However, there is a build time flag to include the unfree Widevine blob from nixpkgs: | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
{ | |||
environment.systemPackages = with pkgs; [ | |||
(chromium.override { enableWideVine = true; }) | |||
]; | |||
} | } | ||
</ | </nowiki>}} | ||
[[Category: | [[Category:Applications]] |