···8899<para>By default, NixOS’s <command>nixos-rebuild</command> command
1010uses the NixOS and Nixpkgs sources provided by the
1111-<literal>nixos-unstable</literal> channel (kept in
1111+<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:
···4141$ nixos-version
424217.09pre104379.6e0b727 (Hummingbird)
43434444-$ git checkout -b local e3938c8
4444+$ git checkout -b local 6e0b727
4545</screen>
46464747Or, to base your local branch on the latest version available in a
···87878888You may want to delete the symlink
8989<filename>~/.nix-defexpr/channels_root</filename> to prevent root’s
9090-NixOS channel from clashing with your own tree.</para>
9090+NixOS channel from clashing with your own tree (this may break the
9191+command-not-found utility though). If you want to go back to the default
9292+state, you may just remove the <filename>~/.nix-defexpr</filename>
9393+directory completely, log out and log in again and it should have been
9494+recreated with a link to the root channels.</para>
91959296<!-- FIXME: not sure what this means.
9397<para>You should not pass the base directory