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" ]; users.users.geoffrey.extraGroups = [ "docker" ];
}) })
(lib.mkIf config.frogeye.dev.vm { (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 = { virtualisation = {
libvirtd.enable = true; libvirtd.enable = true;
spiceUSBRedirection.enable = true; spiceUSBRedirection.enable = true;