add kvmgt

This commit is contained in:
Cyryl Płotnicki 2021-10-10 09:09:38 +01:00
parent d41cb34b15
commit a0c84cac55
2 changed files with 5 additions and 0 deletions

View file

@ -32,6 +32,10 @@
time.timeZone = "Europe/London"; time.timeZone = "Europe/London";
virtualisation.kvmgt = {
enable = true;
device = "0000:00:02.0";
};
hardware.trackpoint.enable = true; hardware.trackpoint.enable = true;
services.hardware.bolt.enable = true; services.hardware.bolt.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";

View file

@ -4,6 +4,7 @@
boot.kernelParams = [ "intel_iommu=on" ]; boot.kernelParams = [ "intel_iommu=on" ];
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
virtualisation.kvmgt.enable = true; virtualisation.kvmgt.enable = true;
users.extraUsers.cyryl.extraGroups = [ "kvm" ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
virtmanager qemu virtmanager qemu