From b7552554aab26ffa9b2d8ddfd96fa1293d431a73 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Thu, 28 Nov 2024 18:26:28 +0100 Subject: [PATCH] pinwheel: Add volume sharing for `vm`s --- hosts/pinwheel/modules/vm/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/pinwheel/modules/vm/default.nix b/hosts/pinwheel/modules/vm/default.nix index 1ad4d74..5bb155b 100644 --- a/hosts/pinwheel/modules/vm/default.nix +++ b/hosts/pinwheel/modules/vm/default.nix @@ -17,7 +17,10 @@ in config = lib.mkIf enabled { virtualisation = { spiceUSBRedirection.enable = true; # Allow redirecting USB to the VM - libvirtd.enable = true; + libvirtd = { + enable = true; + qemu.vhostUserPackages = [ pkgs.virtiofsd ]; + }; }; users.users.alex = {