summary refs log tree commit diff
path: root/nixos/modules/installer
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2018-09-28 22:10:31 +0800
committerPeter Hoeg <peter@hoeg.com>2018-09-28 22:28:18 +0800
commitca6d41ae654386562ef7f00ae268e6e9070a3f49 (patch)
treebfa2a7425433ab7371ca0d4ec137ef8ec3fa2a5e /nixos/modules/installer
parent3a76bc7a79e18020716ba063dcd1bd8ec11b0790 (diff)
downloadnixlib-ca6d41ae654386562ef7f00ae268e6e9070a3f49.tar
nixlib-ca6d41ae654386562ef7f00ae268e6e9070a3f49.tar.gz
nixlib-ca6d41ae654386562ef7f00ae268e6e9070a3f49.tar.bz2
nixlib-ca6d41ae654386562ef7f00ae268e6e9070a3f49.tar.lz
nixlib-ca6d41ae654386562ef7f00ae268e6e9070a3f49.tar.xz
nixlib-ca6d41ae654386562ef7f00ae268e6e9070a3f49.tar.zst
nixlib-ca6d41ae654386562ef7f00ae268e6e9070a3f49.zip
nixos-installer: use the hyperv module on hyperv
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r--nixos/modules/installer/tools/nixos-generate-config.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl
index 359caad89a72..b70faa380e54 100644
--- a/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -277,8 +277,7 @@ if ($virt eq "qemu" || $virt eq "kvm" || $virt eq "bochs") {
 
 # Also for Hyper-V.
 if ($virt eq "microsoft") {
-    push @initrdAvailableKernelModules, "hv_storvsc";
-    $videoDriver = "fbdev";
+    push @attrs, "virtualisation.hypervGuest.enable = true;"
 }