How can I get NixOS to boot a built kernel in a specified kernel source tree directory, for example /home/rah/my-modified-kernel/? I’ve searched the web, the NixOS wiki and these forums for information on how to do this, and asked on Matrix but to no avail.
I’ve already seen these pages. The linked manual page describes building a kernel, presumably from nixpkgs, with a custom config. It’s not about installing and booting a kernel from a local kernel source tree.
This is about building a kernel from a tarball, not booting a kernel from a local source tree.
Still, this is about building the kernel, is it possible to install and boot an already-built kernel/modules/dtbs from a local directory? I don’t want to have to rebuild the entire kernel tree every time I make a change, which I understand is what Nix will do.