diff --git a/doc/manual/development.xml b/doc/manual/development.xml index 50ce2a2dcb73..251df4c84c80 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. + diff --git a/doc/manual/installation.xml b/doc/manual/installation.xml index b85aee972fd6..40a2efa1405a 100644 --- a/doc/manual/installation.xml +++ b/doc/manual/installation.xml @@ -152,7 +152,7 @@ $ nixos-option --install $ nixos-checkout to make the installer use the latest NixOS/Nixpkgs sources from the - Subversion repository, rather than the sources on CD. + Git repository, rather than the sources on CD. --> Do the installation: @@ -315,7 +315,7 @@ available. use the nixos-unstable channel. (A channel is a Nix mechanism for distributing Nix expressions and associated binaries.) The NixOS channel is updated automatically from NixOS’s -Subversion repository after running certain tests and building most +Git repository after running certain tests and building most packages. NixOS automatically subscribes you to the NixOS channel. If for