[Nix-dev] [***SPAM***] Using a custom kernel on NixOs

Lluís Batlle i Rossell viric at viric.name
Mon Dec 3 12:01:21 CET 2012


On Mon, Dec 03, 2012 at 02:55:59PM +0400, Michael Raskin wrote:
> >Sorry for my bad English.
> >
> >Would someone provide a pointer about how install a custom kernel on 
> >NixOs? I have already searched on TFW and TFM without success.
> >
> >I'm wondering if NixOs is suitable for kernel development...
> 
> Well, you can just override src in any kernel expression we have 
> (obviously, you want to use the closest version)

If you want nixos to *build* the kernel for you, you should use nixpkgs'
packageOverrides to override the linux kernels you have set nixos to use.

If you want nixos to use some kernel binaries *you build manually*, you should
modify the nixos expressions to use those files as source, instead of referring
to nixpkgs derivations. This is trickier and requires a more deep nixos
knowledge.

Regards,
Lluís.


More information about the nix-dev mailing list