From 29a6c9b9a3f1e64c0c68a57a5f087deb97a99f8a Mon Sep 17 00:00:00 2001 From: ilian Date: Mon, 8 Feb 2021 13:05:15 +0100 Subject: nixos/hypervGuest: add Microsoft Synthetic Keyboard driver Ensure that the HyperV keyboard driver is available in the early stages of the boot process. This allows the user to enter a disk encryption passphrase or repair a boot problem in an interactive shell. --- nixos/modules/virtualisation/hyperv-guest.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/virtualisation/hyperv-guest.nix b/nixos/modules/virtualisation/hyperv-guest.nix index adc2810a993..105224b8964 100644 --- a/nixos/modules/virtualisation/hyperv-guest.nix +++ b/nixos/modules/virtualisation/hyperv-guest.nix @@ -31,6 +31,8 @@ in { "hv_balloon" "hv_netvsc" "hv_storvsc" "hv_utils" "hv_vmbus" ]; + initrd.availableKernelModules = [ "hyperv_keyboard" ]; + kernelParams = [ "video=hyperv_fb:${cfg.videoMode} elevator=noop" ]; -- cgit 1.4.1