nix-conf/system/modules/virtualization.nix
2024-12-20 22:35:43 +08:00

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