From f541f6ec8c07baa560b849195a6637be7ff2803e Mon Sep 17 00:00:00 2001 From: Mars Date: Fri, 11 Oct 2024 15:58:09 -0400 Subject: [PATCH] fix for asahi --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 8cd7599..b85de34 100644 --- a/flake.nix +++ b/flake.nix @@ -126,7 +126,10 @@ vulkanDir = "${mesa.drivers}/share/vulkan/icd.d"; vulkanFiles = builtins.filter (file: builtins.match ".*\\.json$" file != null) (builtins.attrNames (builtins.readDir vulkanDir)); vulkanPaths = lib.concatStringsSep ":" (map (file: "${vulkanDir}/${file}") vulkanFiles); - in "${linuxPackages_latest.nvidia_x11_vulkan_beta}/share/vulkan/icd.d/nvidia_icd.x86_64.json:${vulkanPaths}"; + in + if stdenv.hostPlatform.isx86_64 + then "${linuxPackages_latest.nvidia_x11_vulkan_beta}/share/vulkan/icd.d/nvidia_icd.x86_64.json:${vulkanPaths}" + else vulkanPaths; shellHook = '' export PATH="${llvmPackages_18.clang-tools.override {enableLibcxx = true;}}/bin:$PATH"