3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/modules/misc
Eelco Dolstra 6f1b1aefde * Added an option `nixpkgs.config' that allows the Nixpkgs options to
be set from the NixOS configuration.  For instance, you can say

    nixpkgs.config.firefox.enableGeckoMediaPlayer = true;

    environment.systemPackages = [ pkgs.firefox ];

  but the more interesting application is to apply global overrides to
  Nixpkgs throughout NixOS, e.g.

    nixpkgs.config.packageOverrides = pkgs:
      { glibc = pkgs.glibc27;
        gcc = pkgs.gcc42;
      };

  would build the whole system with Glibc 2.7 and GCC 4.2.  (There are
  some issues with "useFromStdenv" in all-packages.nix that need to be
  fixed for packages in the stdenv bootstrap though.)

  The implementation of this option is kind of evil though due to the
  need to prevent a circularity between the evaluation of
  nixpkgs.config and the "pkgs" module argument.

svn path=/nixos/trunk/; revision=16866
2009-08-26 16:52:38 +00:00
..
assertions.nix * More cleanup. 2009-05-28 16:20:08 +00:00
check-config.nix * Added an option `nixpkgs.config' that allows the Nixpkgs options to 2009-08-26 16:52:38 +00:00
ids.nix * dbus: enable support for system services (these are programs that 2009-08-16 21:46:26 +00:00
locate.nix * Moved the last modules to modules/. 2009-05-29 14:11:02 +00:00
nixpkgs.nix * Added an option `nixpkgs.config' that allows the Nixpkgs options to 2009-08-26 16:52:38 +00:00
passthru.nix Adding back passthru functionality 2009-07-08 09:10:48 +00:00