dotfiles/nixos/libvirt.nix
Cyryl Płotnicki a0c84cac55 add kvmgt
2021-10-10 09:09:38 +01:00

13 lines
312 B
Nix

{ config, pkgs, ... }:
{
boot.kernelModules = [ "kvm-intel" ];
boot.kernelParams = [ "intel_iommu=on" ];
virtualisation.libvirtd.enable = true;
virtualisation.kvmgt.enable = true;
users.extraUsers.cyryl.extraGroups = [ "kvm" ];
environment.systemPackages = with pkgs; [
virtmanager qemu
];
}