From b0a7b2c0bb5bb9adbc3d3eda9b370c9986c13aab Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 10 Jun 2024 08:36:36 +0200 Subject: [PATCH] pinwheel: Add ability to forward USB devices to VMs --- 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 ef9438b..1dd4118 100644 --- a/hosts/pinwheel/modules/vm/default.nix +++ b/hosts/pinwheel/modules/vm/default.nix @@ -10,7 +10,10 @@ in }; config = lib.mkIf enabled { - virtualisation.libvirtd.enable = true; + virtualisation = { + spiceUSBRedirection.enable = true; # Allow redirecting USB to the VM + libvirtd.enable = true; + }; users.users.alex = { extraGroups = [ "libvirtd" ];