If my generation uses linux_kernel6 {13,14} my system gets stuck on boot with the following message after selecting generation with said kernel: EFI stub: loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path. I’ve tried reinstalling the bootloader and applying debug, shell_on_fail flags from as it says in the manual / wiki (boot was still stuck on that message). Rebooting from a working kernel shows no boot entry at journalct (which makes sense, since it never reached stage 1). Everything works fine on linux_kernel_6_12 and lower.
Boot related entries in my config:
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
kernel.sysctl."vm.max_map_count" = lib.mkForce 2147483642;
};
...
boot = {
initrd.kernelModules = ["amdgpu"];
kernelPackages = pkgs.linuxPackages_latest;
};
...
boot = {
initrd.kernelModules = ["v4l2loopback"];
extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=0 card_label="Droid cam" exclusive_caps=1
'';
};
FROM hardware-configuration.nix
boot.initrd.availableKernelModules = ["thunderbolt" "xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
Also nix-info output in case if needed:
lemm@lemm /home/lemm > nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.12.20, NixOS, 25.05 (Warbler), 25.05.20250327.5e5402e`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.24.12`
- channels(root): `"nixos"`
- nixpkgs: `/nix/store/xb087rbbnw0fdmx86s8wm86rh7da5afi-source`
I do use flakes with nixos-unstable branch