vm: Fix virtio

This commit is contained in:
Geoffrey Frogeye 2024-10-03 13:55:31 +02:00
parent e305c6b1de
commit c2068a30ff
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -6,6 +6,10 @@
users.users.geoffrey.extraGroups = [ "docker" ];
})
(lib.mkIf config.frogeye.dev.vm {
# Required to mount filesystems. Also need to add
# <binary path="/run/current-system/sw/bin/virtiofsd"/>
# to the VM's filesystem XML config
environment.systemPackages = [ pkgs.virtiofsd ];
virtualisation = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;