nixpkgs/nixos
Eelco Dolstra 0e333688ce Big cleanup of the NixOS module system
The major changes are:

* The evaluation is now driven by the declared options.  In
  particular, this fixes the long-standing problem with lack of
  laziness of disabled option definitions.  Thus, a configuration like

    config = mkIf false {
      environment.systemPackages = throw "bla";
    };

  will now evaluate without throwing an error.  This also improves
  performance since we're not evaluating unused option definitions.

* The implementation of properties is greatly simplified.

* There is a new type constructor "submodule" that replaces
  "optionSet".  Unlike "optionSet", "submodule" gets its option
  declarations as an argument, making it more like "listOf" and other
  type constructors.  A typical use is:

    foo = mkOption {
      type = type.attrsOf (type.submodule (
        { config, ... }:
        { bar = mkOption { ... };
          xyzzy = mkOption { ... };
        }));
    };

  Existing uses of "optionSet" are automatically mapped to
  "submodule".

* Modules are now checked for unsupported attributes: you get an error
  if a module contains an attribute other than "config", "options" or
  "imports".

* The new implementation is faster and uses much less memory.
2013-10-28 22:45:55 +01:00
..
doc nixos manual: fix references to obsolete nixos repository 2013-10-27 08:53:47 +02:00
gui Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
lib Big cleanup of the NixOS module system 2013-10-28 22:45:55 +01:00
maintainers Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
modules Big cleanup of the NixOS module system 2013-10-28 22:45:55 +01:00
tests munin: add test and fix a bug 2013-10-20 21:16:24 +02:00
.topmsg experimental/vsftpd 2013-10-12 01:05:13 +02:00
COPYING Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
default.nix Update the release expressions and the channel generators 2013-10-10 13:28:22 +02:00
README Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
release-combined.nix Make more tests release-critical 2013-10-17 12:20:07 +02:00
release.nix Add the NixOS manpages to the channel 2013-10-25 00:06:24 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.