git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #24533 from Zimmi48/patch-1

[doc] improve "getting the sources" chapter

commitb0d07aa894007a52466b06eced06c1eee469ee1c authorEelco Dolstra <eelco.dolstra@logicblox.com> dateMon 3 Apr 2017, 15:33 (10 years ago) parentc74530872070e6
1 file changed+7−3
nixos/doc/manual/development/sources.xml+7−3
nixos/doc/manual/development/sources.xml+7−3
@@ -8,7 +8,7 @@
88
99<para>By default, NixOS’s <command>nixos-rebuild</command> command
1010uses the NixOS and Nixpkgs sources provided by the
11−<literal>nixos-unstable</literal> channel (kept in
11+<literal>nixos</literal> channel (kept in
1212<filename>/nix/var/nix/profiles/per-user/root/channels/nixos</filename>).
1313To modify NixOS, however, you should check out the latest sources from
1414Git. This is as follows:
@@ -41,7 +41,7 @@ branch based on your current NixOS version:
4141$ nixos-version
424217.09pre104379.6e0b727 (Hummingbird)
4343
44−$ git checkout -b local e3938c8
44+$ git checkout -b local 6e0b727
4545</screen>
4646
4747Or, to base your local branch on the latest version available in a
@@ -87,7 +87,11 @@ $ ln -s <replaceable>/my/sources</replaceable>/nixpkgs ~/.nix-defexpr/nixpkgs
8787
8888You may want to delete the symlink
8989<filename>~/.nix-defexpr/channels_root</filename> to prevent root’s
90−NixOS channel from clashing with your own tree.</para>
90+NixOS channel from clashing with your own tree (this may break the
91+command-not-found utility though). If you want to go back to the default
92+state, you may just remove the <filename>~/.nix-defexpr</filename>
93+directory completely, log out and log in again and it should have been
94+recreated with a link to the root channels.</para>
9195
9296<!-- FIXME: not sure what this means.
9397<para>You should not pass the base directory