[Nix-dev] Nix as a dotfiles manager

Kirill Elagin kirelagin at gmail.com
Tue Dec 2 09:15:19 CET 2014


It basically links everything from `$out` to the user profile, see <
https://github.com/NixOS/nix/blob/master/corepkgs/buildenv.pl> and,
actually, <
https://github.com/NixOS/nix/blob/master/src/nix-env/user-env.cc#L106>.

Also there is <
https://github.com/NixOS/nixpkgs/tree/master/pkgs/build-support/buildenv>
which is used elsewhere. See e.g. <
https://nixos.org/wiki/Howto_keep_multiple_packages_up_to_date_at_once> or
just `grep -R buildEnv nixpkgs/pkgs` to see how others use it.


On Tue Dec 02 2014 at 3:43:44 Arseniy Seroka <ars.seroka at gmail.com> wrote:
>
> So can you tell me how does Nix and Nixos know that they have to link
> binaries to a `~/.nix-profile/bin/` if we are using `nix-env -i`?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141202/ce4021d9/attachment.html 


More information about the nix-dev mailing list