Chromium: Difference between revisions
m
no edit summary
mNo edit summary |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 21: | Line 21: | ||
} | } | ||
</nowiki>}} | </nowiki>}} | ||
== Enabling native Wayland support == | == 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:Applications]] | [[Category:Applications]] |