[Nix-dev] Linux config options

Wout Mertens wout.mertens at gmail.com
Tue Feb 10 14:48:49 CET 2015


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"?

Plus, having to convert your own .config file to an attribute set enables
you to only mention the options that you actually care about, thus easily
merging with the default configs in the future.

Thoughts?

Wout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150210/391580f9/attachment.html 


More information about the nix-dev mailing list