[Nix-dev] Linux config options

Matthias Beyer mail at beyermatthias.de
Tue Feb 10 14:56:00 CET 2015


On 10-02-2015 14:56:55, Eelco Dolstra wrote:
> Hi,
> 
> On 10/02/15 14:48, Wout Mertens wrote:
> 
> > Just wondering out loud with probably no actionable change:
> > 
> > Why are the kernel options implemented as strings ("FOO y") instead of an
> > attribute set ({ foo = "y": })?
> > 
> > Of course that means you can easily import your own .config file as described
> > at https://nixos.org/wiki/How_to_tweak_Linux_kernel_config_options, but would an
> > attribute set not allow things like "if the kernel has this feature enabled,
> > install this package" or "if you enable this module the kernel must have foo set
> > to one of these values"?
> 
> pkgs/os-specific/linux/kernel/manual-config.nix allows passing a "config"
> attribute set containing kernel config option, e.g.
> 
>  config = { CONFIG_MODULES = "y"; CONFIG_FW_LOADER = "m"; };

Uh, nice to know! Maybe there should be an option to tell the builder
to include all "m" as "y" (Don't use modules but include the stuff
directly in the kernel).

Would be nice for own kernels, I guess.

---

Besides: Is there a documentation around how to build my own kernel
(and install it, of course) as system package? Maybe even from a local
clone of the kernel tree?

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150210/9d5bc4ea/attachment.bin 


More information about the nix-dev mailing list