From 4c05e76d00a1fa7685f2f19a961aec2388bdb2bb Mon Sep 17 00:00:00 2001 From: DuN0z Date: Sun, 5 Oct 2025 00:29:24 +0200 Subject: [PATCH] FIX: changes in Nix definitions --- modules/common/qemu.nix | 18 +++++++++++++----- modules/hardware/gpu-amd.nix | 1 - 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/modules/common/qemu.nix b/modules/common/qemu.nix index 5fc15f6..b452c4a 100644 --- a/modules/common/qemu.nix +++ b/modules/common/qemu.nix @@ -1,6 +1,7 @@ { lib, pkgs, + config, ... }: { boot.kernelModules = lib.mkAfter ["tun"]; @@ -21,14 +22,21 @@ virtualisation.libvirtd = { enable = true; - qemu = { - swtpm.enable = true; - ovmf.enable = true; - ovmf.packages = [pkgs.OVMFFull.fd]; - runAsRoot = false; + qemu = + if lib.versionOlder config.system.nixos.release "25.11" + then { + ovmf.enable = true; + ovmf.packages = [pkgs.OVMFFull.fd]; + runAsRoot = false; + swtpm.enable = true; + } else { + runAsRoot = false; + swtpm.enable = true; }; }; + + users.users.lomig.extraGroups = ["libvirtd" "kvm" "input"]; environment.etc."qemu/bridge.conf".text = '' diff --git a/modules/hardware/gpu-amd.nix b/modules/hardware/gpu-amd.nix index e92d858..caa4f31 100644 --- a/modules/hardware/gpu-amd.nix +++ b/modules/hardware/gpu-amd.nix @@ -25,7 +25,6 @@ libva-vdpau-driver vaapiVdpau libvdpau-va-gl - amdvlk vulkan-tools vulkan-loader vulkan-validation-layers