From 68b022b9afba2b77f16a4de67ee73dc301ee11a1 Mon Sep 17 00:00:00 2001 From: Odweta Date: Wed, 21 Jan 2026 17:49:15 +0100 Subject: [PATCH] update vulkan --- modules/hardware/default.nix | 1 + modules/hardware/vulkan.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 modules/hardware/vulkan.nix diff --git a/modules/hardware/default.nix b/modules/hardware/default.nix index 902bf29..253ca20 100644 --- a/modules/hardware/default.nix +++ b/modules/hardware/default.nix @@ -5,5 +5,6 @@ ./audio.nix ./opengl.nix ./usb.nix + ./vulkan.nix ]; } diff --git a/modules/hardware/vulkan.nix b/modules/hardware/vulkan.nix new file mode 100644 index 0000000..773bf54 --- /dev/null +++ b/modules/hardware/vulkan.nix @@ -0,0 +1,22 @@ +{ pkgs, ... }: + +{ + hardware.cpu.intel.updateMicrocode = true; + environment.systemPackages = with pkgs; [ + vulkan-tools + lib32Mesa + lib32VulkanIntel + ]; + nixpkgs.config = { + allowUnfree = true; + packageOverrides = pkgs: { + my32bit = pkgs.buildEnv { + name = "my32bit"; + paths = [ + pkgs.lib32Mesa + pkgs.lib32VulkanIntel + ]; + }; + }; + }; +}