From b111794dbbc0f097d9a11ce5823c59510301cc0d Mon Sep 17 00:00:00 2001 From: twoneis Date: Sat, 7 Sep 2024 17:14:43 +0200 Subject: [PATCH] virtiofsd --- modules/vm/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/vm/default.nix b/modules/vm/default.nix index 4345fd8..0a60183 100644 --- a/modules/vm/default.nix +++ b/modules/vm/default.nix @@ -1,8 +1,11 @@ -{ lib, config, ... }: let +{ lib, config, pkgs, ... }: let inherit (lib) mkIf; inherit (config) conf; in mkIf conf.vm.enable { - virtualisation.libvirtd.enable = true; + virtualisation.libvirtd = { + enable = true; + qemu.vhostUserPackages = [ pkgs.virtiofsd ]; + }; programs.virt-manager.enable = true; users.users.${conf.username}.extraGroups = [ "libvirtd" ];