[Nix-dev] PLease help to grok the code

Lluís Batlle i Rossell viric at viric.name
Wed Jan 4 22:52:55 CET 2012


On Thu, Jan 05, 2012 at 01:51:24AM +0400, Sergey Mironov wrote:
> top-level/all-packages.nix:32
> (https://nixos.org/websvn/nix/nixpkgs/trunk/pkgs/top-level/all-packages.nix)
> 
> defines 'config' parameter. Where does it come from when I type
> 'nixos-rebuild switch'? NIXPKGS_CONFIG is set to /nix/etc/config.nix but
> there is no such file! I am screwed up.. How should I change
> those getConfig X Y behaviour in , eg.
> 
>   emacs22 = callPackage ../applications/editors/emacs-22 {
>     stdenv = overrideGCC stdenv gcc44;
>     xaw3dSupport = getConfig [ "emacs" "xaw3dSupport" ] false;
>     gtkGUI = getConfig [ "emacs" "gtkSupport" ] true;
>   };

in configuration.nix:
{
  ...
  nixpkgs.config = { emacs.gtkSupport = false; };
  ...
}



More information about the nix-dev mailing list