From 78f090c82919d42643a7b3afe63d336461337ff9 Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Sun, 11 Aug 2013 07:42:03 +0000 Subject: [PATCH] Explain how to use /my/sources with nix-env, not just nixos-rebuild --- doc/manual/development.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/manual/development.xml b/doc/manual/development.xml index 95c1848e3871..17d7103e0d49 100644 --- a/doc/manual/development.xml +++ b/doc/manual/development.xml @@ -48,6 +48,25 @@ $ nixos-rebuild switch -I /my/sources +nixos-rebuild affects only the system profile. +To install packages to your user profile from expressions in +/my/sources, use +nix-env -f /my/sources/nixpkgs, +or change the default by replacing the symlink in +~/.nix-defexpr: + + +$ rm -f ~/.nix-defexpr/channels +$ ln -s /my/sources/nixpkgs ~/.nix-defexpr/nixpkgs + + + + +You should not pass the base directory +/my/sources +to nix-env, as it will break after interpreting expressions +in nixos/ as packages. +