···89<para>By default, NixOS’s <command>nixos-rebuild</command> command
10uses the NixOS and Nixpkgs sources provided by the
11-<literal>nixos-unstable</literal> channel (kept in
12<filename>/nix/var/nix/profiles/per-user/root/channels/nixos</filename>).
13To modify NixOS, however, you should check out the latest sources from
14Git. This is as follows:
···41$ nixos-version
4217.09pre104379.6e0b727 (Hummingbird)
4344-$ git checkout -b local e3938c8
45</screen>
4647Or, to base your local branch on the latest version available in a
···8788You may want to delete the symlink
89<filename>~/.nix-defexpr/channels_root</filename> to prevent root’s
90-NixOS channel from clashing with your own tree.</para>
00009192<!-- FIXME: not sure what this means.
93<para>You should not pass the base directory
···89<para>By default, NixOS’s <command>nixos-rebuild</command> command
10uses the NixOS and Nixpkgs sources provided by the
11+<literal>nixos</literal> channel (kept in
12<filename>/nix/var/nix/profiles/per-user/root/channels/nixos</filename>).
13To modify NixOS, however, you should check out the latest sources from
14Git. This is as follows:
···41$ nixos-version
4217.09pre104379.6e0b727 (Hummingbird)
4344+$ git checkout -b local 6e0b727
45</screen>
4647Or, to base your local branch on the latest version available in a
···8788You may want to delete the symlink
89<filename>~/.nix-defexpr/channels_root</filename> to prevent root’s
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>
9596<!-- FIXME: not sure what this means.
97<para>You should not pass the base directory