FIX: changes in Nix definitions

This commit is contained in:
DuN0z 2025-10-05 00:29:24 +02:00
parent be424966eb
commit 4c05e76d00
2 changed files with 13 additions and 6 deletions

View file

@ -1,6 +1,7 @@
{ {
lib, lib,
pkgs, pkgs,
config,
... ...
}: { }: {
boot.kernelModules = lib.mkAfter ["tun"]; boot.kernelModules = lib.mkAfter ["tun"];
@ -21,14 +22,21 @@
virtualisation.libvirtd = { virtualisation.libvirtd = {
enable = true; enable = true;
qemu = { qemu =
swtpm.enable = true; if lib.versionOlder config.system.nixos.release "25.11"
then {
ovmf.enable = true; ovmf.enable = true;
ovmf.packages = [pkgs.OVMFFull.fd]; ovmf.packages = [pkgs.OVMFFull.fd];
runAsRoot = false; runAsRoot = false;
swtpm.enable = true;
} else {
runAsRoot = false;
swtpm.enable = true;
}; };
}; };
users.users.lomig.extraGroups = ["libvirtd" "kvm" "input"]; users.users.lomig.extraGroups = ["libvirtd" "kvm" "input"];
environment.etc."qemu/bridge.conf".text = '' environment.etc."qemu/bridge.conf".text = ''

View file

@ -25,7 +25,6 @@
libva-vdpau-driver libva-vdpau-driver
vaapiVdpau vaapiVdpau
libvdpau-va-gl libvdpau-va-gl
amdvlk
vulkan-tools vulkan-tools
vulkan-loader vulkan-loader
vulkan-validation-layers vulkan-validation-layers