dotfiles-nix/nix/systems/main/base/virtulization.nix
2023-10-13 15:56:14 +02:00

29 lines
596 B
Nix

{ config, lib, pkgs, inputs, ... }:
{
users.users.nicolaivds.extraGroups = [ "kvm" "input" "libvirtd" ];
environment.systemPackages = with pkgs; [
virt-manager
virt-viewer
win-spice
win-virtio
spice
spice-gtk
spice-protocol
];
services.spice-vdagentd.enable = true;
virtualisation = {
spiceUSBRedirection.enable = true;
libvirtd = {
enable = true;
allowedBridges = ["wlo1"];
qemu = {
swtpm.enable = true;
ovmf = {
enable = true;
packages = [ pkgs.OVMFFull.fd ];
};
};
};
};
}