aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-15 21:06:27 +0000
committertv <tv@krebsco.de>2026-11-15 21:06:27 +0000
commite7baf8457bc1f8ef87813dc22c60f4310246019e (patch)
tree48e81baf205e33fbc2312087969ab0264a545c2c
parent83b09ab2a025b68cc49db74f59aa71f6a67df0f0 (diff)
make guest kernel configurable, default to latest
Default to linuxPackages_latest, which matches a host running the latest kernel from the same channel, so no extra kernel gets built.
-rw-r--r--default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index a246ad4..c061c16 100644
--- a/default.nix
+++ b/default.nix
@@ -1,4 +1,6 @@
-{ pkgs ? import <nixpkgs> {} }:
+{ pkgs ? import <nixpkgs> {}
+, kernelPackages ? pkgs.linuxPackages_latest
+}:
let
inherit (pkgs) lib;
@@ -8,6 +10,7 @@ let
system.stateVersion = lib.trivial.release;
boot.loader.grub.enable = false;
+ boot.kernelPackages = kernelPackages;
boot.initrd.kernelModules = [ "virtio_mmio" "virtio_blk" "erofs" ];
boot.kernelParams = [ "console=ttyS0" "reboot=k" "panic=1" ];