about summary refs log tree commit diff
path: root/nixos/tests/vscodium.nix
diff options
context:
space:
mode:
authorWout Mertens <Wout.Mertens@gmail.com>2021-11-27 01:54:14 +0100
committerWout Mertens <Wout.Mertens@gmail.com>2022-01-27 09:46:36 +0100
commitb2eb5f62a7fd94ab58acafec9f64e54f97c508a6 (patch)
tree5e0da9b66e9b8751795208922e6a56c8cf353691 /nixos/tests/vscodium.nix
parente722007bf05802573b41701c49da6c8814878171 (diff)
wayland: enable ozone via $NIXOS_OZONE_WL
Chrome, Chromium, VSCode, Slack, Signal, Discord, element-desktop,
schildichat.

For the latter two, the feature flag useWayland was removed and a
wrapper script was provided.
Diffstat (limited to 'nixos/tests/vscodium.nix')
-rw-r--r--nixos/tests/vscodium.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/nixos/tests/vscodium.nix b/nixos/tests/vscodium.nix
index 66baea73ec627..688ddfe07e3e1 100644
--- a/nixos/tests/vscodium.nix
+++ b/nixos/tests/vscodium.nix
@@ -3,11 +3,10 @@ let
     wayland = { pkgs, ... }: {
       imports = [ ./common/wayland-cage.nix ];
 
-      services.cage.program = ''
-        ${pkgs.vscodium}/bin/codium \
-          --enable-features=UseOzonePlatform \
-          --ozone-platform=wayland
-      '';
+      services.cage.program = "${pkgs.vscodium}/bin/codium";
+
+      environment.variables.NIXOS_OZONE_WL = "1";
+      environment.variables.DISPLAY = "do not use";
 
       fonts.fonts = with pkgs; [ dejavu_fonts ];
     };