nix-conf/system/modules/virtualization.nix
2024-12-23 13:42:40 +08:00

24 lines
428 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;
};
spiceUSBRedirection.enable = true;
};
}