NixOS/nixos — pull request #25 by shlevy (2012-08-07 22:16:51+00:00)
Title: Required kernel config

This branch does a few things:

* Allows a module to specify the kernel configuration settings it requires with system.requiredKernelConfig
* Makes it easy to run a NixOS test with a minimal kernel (one where all the requiredKernelConfig options for the test configuration are respected but otherwise the kernel is configured with allnoconfig)
* Adds a flag to release.nix to enable running its tests with the minimal kernel
* Sets all the requiredKernelConfig needed to get the test infrastructure itself working

Modules should now explicitly declare their minimal kernel configuration settings, and if the module has a NixOS test it's easy to automatically check if you've specified correctly. Users using the standard nixpkgs kernels will not be affected by requiredKernelConfig, but users of the manually configured kernel will see a NixOS assertion error if their kernel doesn't support something they've enabled.