[Nix-dev] upgrades and channels

Eelco Dolstra eelco.dolstra at logicblox.com
Thu Jul 5 23:07:42 CEST 2012


Hi,

On 05/07/12 17:02, Mathijs Kwik wrote:

>> And a question about NIX_PATH:
>> by default it's
>>
> NIX_PATH='/nix/var/nix/profiles/per-user/root/channels/nixos:nixpkgs=/etc/nixos/nixpkgs:nixos=/etc/nixos/nixos:nixos-config=/etc/nixos/configuration.nix:services=/etc/nixos/services'
>>
>> I understand the name=value pairs give the <name> syntax, but how does a plain
> dirname (like the channels/nixos dir) get handled?

See the description of NIX_PATH in nix-env(1).

>> I see it contains nixos and nixpkgs, but also a cryptic default.nix

The default.nix just includes Nixpkgs so that nix-env can find the Nixpkgs copy
in the NixOS channel.

>> My local /home/mathijs/nix-dev dir contains nixos and nixpkgs.
>> If I want to switch to using those instead of the channel (temporarily), can I
> just point NIX_PATH there? 

Yes, or use -I (e.g. "nixos-rebuild switch -I ~mathijs/nix-dev").

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list