dotfiles/nixos/libvirt.nix
Cyryl Płotnicki fe4d30f651 nixpkgs-fmt
2021-11-22 19:32:26 +00:00

15 lines
326 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
swtpm
];
}