From a9e3e47de1779cdc8c51baf8d9e5976ec041d4a0 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Sun, 28 Oct 2018 11:23:34 +0100 Subject: [PATCH] steveej-laptop: enable nested kvm-intel --- nixos-configuration/steveej-laptop/hw.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos-configuration/steveej-laptop/hw.nix b/nixos-configuration/steveej-laptop/hw.nix index a3373dc..992fe47 100644 --- a/nixos-configuration/steveej-laptop/hw.nix +++ b/nixos-configuration/steveej-laptop/hw.nix @@ -12,6 +12,12 @@ boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.kernelModules = [ "kvm-intel" ]; + boot.extraModprobeConfig = '' + options kvm-intel nested=1 + options kvm-intel enable_shadow_vmcs=1 + options kvm-intel enable_apicv=1 + options kvm-intel ept=1 + ''; boot.extraModulePackages = [ ]; boot.loader.systemd-boot.enable = true;