nix-conf/system/modules/virtualization.nix
2025-01-01 14:53:27 +08:00

25 lines
477 B
Nix

{ pkgs, ... }:
{
programs.virt-manager.enable = true;
users.groups.libvirtd.members = [ "danny" ];
virtualisation = {
docker.enable = true;
# Run container as systemd service
oci-containers = {
backend = "docker";
containers = { };
};
libvirtd = {
enable = true;
qemu.swtpm.enable = true;
qemu.ovmf.enable = true;
qemu.ovmf.packages = [ pkgs.OVMFFull.fd ];
};
spiceUSBRedirection.enable = true;
};
}