summary refs log tree commit diff
diff options
context:
space:
mode:
authorilian <ilian@tuta.io>2021-02-08 13:05:15 +0100
committerPeter Hoeg <peter@hoeg.com>2021-02-17 08:01:34 +0000
commit29a6c9b9a3f1e64c0c68a57a5f087deb97a99f8a (patch)
tree6eab6cc36ff240329d45326765be8d31fbc4722a
parente32aaddc7779afaaf102adee155638206b7063b4 (diff)
downloadnixpkgs-29a6c9b9a3f1e64c0c68a57a5f087deb97a99f8a.tar
nixpkgs-29a6c9b9a3f1e64c0c68a57a5f087deb97a99f8a.tar.gz
nixpkgs-29a6c9b9a3f1e64c0c68a57a5f087deb97a99f8a.tar.bz2
nixpkgs-29a6c9b9a3f1e64c0c68a57a5f087deb97a99f8a.tar.lz
nixpkgs-29a6c9b9a3f1e64c0c68a57a5f087deb97a99f8a.tar.xz
nixpkgs-29a6c9b9a3f1e64c0c68a57a5f087deb97a99f8a.tar.zst
nixpkgs-29a6c9b9a3f1e64c0c68a57a5f087deb97a99f8a.zip
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.
-rw-r--r--nixos/modules/virtualisation/hyperv-guest.nix2
1 files changed, 2 insertions, 0 deletions
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"
       ];