[Nix-dev] upgrades and channels
Mathijs Kwik
mathijs at bluescreen303.nl
Thu Jul 5 22:59:38 CEST 2012
cool, tnx
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?
I see it contains nixos and nixpkgs, but also a cryptic default.nix
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? Or do I need the default.nix too? Or do I
beeld to specify nixpkg= and nixos= separately?
Thanks,
Mathijs
On Thu, Jul 5, 2012 at 10:33 PM, Eelco Dolstra <eelco.dolstra at logicblox.com>
wrote:
> Hi Mathijs,
>
> On 05/07/12 16:29, Mathijs Kwik wrote:
>
>> Can someone please tell me the differences between these 3 upgrade
options?
>>
>> nixos-rebuild:
>> --upgrade fetch the latest version of NixOS before rebuilding
>
> This is equivalent to:
>
> $ nix-channel --update nixos
> $ nixos-rebuild ...
>
> So it's just a convenience.
>
>> --pull do a nix-pull to get the latest NixOS channel manifest
>
> This is obsolete, but it may be useful for people who don't use the
channel. It
> gets the latest NixOS manifest, but there is no guarantee that the
manifest
> corresponds to your NixOS/Nixpkgs revision.
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120705/223187e5/attachment.html
More information about the nix-dev
mailing list