Set up chromium with support for wayland and widevine.

This commit is contained in:
Tom Alexander
2024-12-22 00:48:57 -05:00
parent 69098488f6
commit 27aa2f077b
3 changed files with 55 additions and 1 deletions

View File

@@ -297,11 +297,13 @@ in
programs.sway.extraSessionCommands =
if config.me.buildingIso then
''
export WLR_RENDERER_ALLOW_SOFTWARE=1;
export WLR_RENDERER_ALLOW_SOFTWARE=1
export NIXOS_OZONE_WL=1 # Wayland support for chromium and electron
''
else
''
export WLR_RENDERER=vulkan
export NIXOS_OZONE_WL=1 # Wayland support for chromium and electron
'';
programs.sway = {