Using the custom_kernel.nix acting as a shell.nix below I would like to nix-shell ./custom_kernel.nix and then the steps as listed in Cross-compiling Linux from source:
I must admit I’m just starting and don’t know yet where to begin searching. Also it is hard to grasp which of all the examples in NixOS wiki fit which use case.
I have an alternate shell.nix for now that let’s me nix-shell and therein genericBuild but what I’m still missing is:
How to generate a .config from the config.gz in use currently at least from the point where I already copied / gunzipped / moved the former to the folder with shell.nix
Toggle some kernel settings via make menuconfig or similar
Use the resulting .config from step 2) to do step 4)
Just build not even install the built kernel image
I’m sure this is doable all in a default.nix or nix expression but for straters would be happy to have just the environment set up using nix, hence my interactive approach.
Following make_menuconfig and with my custom_kernel.nix above (as in Booting_a_kernel_from_a_custom_source) how do I invoke the nix-shell i. e. what is attribute to use instead of linux(.overrideAttrs) there ?