nixpkgs/nixos/modules
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
..
config Big cleanup of the NixOS module system 2013-10-28 22:45:55 +01:00
hardware
installer nixos-generate-config: Don't suggest setting fileSystems in configuration.nix 2013-10-24 05:28:37 +02:00
misc nixos/redis: user set uid, make it compatible #1076 2013-10-28 18:18:13 +01:00
profiles
programs Fix an assertion set in the wrong place 2013-10-25 15:47:30 +02:00
security Allow PAM resource limits to be integers 2013-10-17 15:36:59 +02:00
services openvpn.nix: Improve types 2013-10-28 22:45:55 +01:00
system Big cleanup of the NixOS module system 2013-10-28 22:45:55 +01:00
tasks Load the xfs kernel module on demand 2013-10-13 17:35:57 +02:00
testing
virtualisation nixos/libvirtd: fix remote ssh managment by adding netcat-openbsd in system packages 2013-10-24 11:01:43 +03:00
module-list.nix services.redshift: New service 2013-10-22 09:03:06 +01:00
rename.nix rename.nix: Don't use the extraConfigs feature 2013-10-28 22:45:55 +01:00