From 3a36045f5dfc6316a9d55a6d27140a80e32f1edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 29 Mar 2023 07:26:26 +0100 Subject: [PATCH] use radeon/intel vulkan icd on 32 bit --- config/programs/sway.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/programs/sway.nix b/config/programs/sway.nix index b987cfa2..38c1d54f 100644 --- a/config/programs/sway.nix +++ b/config/programs/sway.nix @@ -2,6 +2,7 @@ config, pkgs, lib, + system, ... }: let c = "$"; @@ -141,7 +142,9 @@ in { export MOZ_ENABLE_WAYLAND=1 export _JAVA_AWT_WM_NONREPARENTING=1 export QT_QPA_PLATFORMTHEME=qt5ct - ''; + '' + (if system == "x86_64-linux" then '' + export VK_ICD_FILENAMES=/run/opengl-driver/share/vulkan/icd.d/intel_icd.x86_64.json:/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json:/run/opengl-driver-32/share/vulkan/icd.d/radeon_icd.i686.json:/run/opengl-driver-32/share/vulkan/icd.d/intel_icd.i686.json + '' else ""); extraConfig = '' default_border none gaps outer 8