FIX: changes in Nix definitions
This commit is contained in:
parent
be424966eb
commit
4c05e76d00
2 changed files with 13 additions and 6 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
boot.kernelModules = lib.mkAfter ["tun"];
|
||||
|
|
@ -21,14 +22,21 @@
|
|||
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
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 = ''
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
libva-vdpau-driver
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
amdvlk
|
||||
vulkan-tools
|
||||
vulkan-loader
|
||||
vulkan-validation-layers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue