aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/kernel.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/kernel.nix b/base/kernel.nix
index fe551c5..16983c7 100644
--- a/base/kernel.nix
+++ b/base/kernel.nix
@@ -1,6 +1,8 @@
# Cut-down guest kernel, based on Firecracker's recommended configuration,
# as a module for the base system:
# nix-build pkgs/run-firecracker-vm --arg base '[ base/kernel.nix ]'
+# With erofs and 9P (for the store), and KVM as modules, which load when
+# the VMM offers hardware virtualization (run-firecracker-vm --nested).
{ pkgs, ... }:
let
linux = pkgs.linux_6_18;
@@ -20,6 +22,10 @@ let
CONFIG_EROFS_FS=m
CONFIG_NET_9P=m
CONFIG_9P_FS=m
+ CONFIG_VIRTUALIZATION=y
+ CONFIG_KVM=m
+ CONFIG_KVM_AMD=m
+ CONFIG_KVM_INTEL=m
EOF
make olddefconfig
'';