not-os

kernel

$ nix-build -A kernel
/nix/store/my4k0c187pvad1gix8sw1358170igb02-linux-5.4.30

The kernel derivation results in an actual kernel, a bzImage file, but also in a set of kernel modules.

The modules are packaged in the shrunk derivation, which itself is used to create the initrd.