virtiofsd

This commit is contained in:
twoneis 2024-09-07 17:14:43 +02:00
parent 2288b88c8e
commit b111794dbb

View file

@ -1,8 +1,11 @@
{ lib, config, ... }: let { lib, config, pkgs, ... }: let
inherit (lib) mkIf; inherit (lib) mkIf;
inherit (config) conf; inherit (config) conf;
in mkIf conf.vm.enable { in mkIf conf.vm.enable {
virtualisation.libvirtd.enable = true; virtualisation.libvirtd = {
enable = true;
qemu.vhostUserPackages = [ pkgs.virtiofsd ];
};
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
users.users.${conf.username}.extraGroups = [ "libvirtd" ]; users.users.${conf.username}.extraGroups = [ "libvirtd" ];