diff options
author | Théo Zimmermann <theo.zimmermann@univ-paris-diderot.fr> | 2017-04-01 15:32:25 +0200 |
---|---|---|
committer | Théo Zimmermann <theo.zimmermann@univ-paris-diderot.fr> | 2017-04-01 17:56:29 +0200 |
commit | 72070e6dfce2dfc4dcd1bd567eadc39878497db7 (patch) | |
tree | faf357ef95d3727aea5788af94e8b5971249942f /nixos/doc/manual/development | |
parent | 0cc0f2d4657a2b724628b62910a1ada745dc7cfb (diff) |
doc: improve "getting the sources" chapter
Diffstat (limited to 'nixos/doc/manual/development')
-rw-r--r-- | nixos/doc/manual/development/sources.xml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/doc/manual/development/sources.xml b/nixos/doc/manual/development/sources.xml index 0b2528e9a7794..a2896cd7a135e 100644 --- a/nixos/doc/manual/development/sources.xml +++ b/nixos/doc/manual/development/sources.xml @@ -8,7 +8,7 @@ <para>By default, NixOS’s <command>nixos-rebuild</command> command uses the NixOS and Nixpkgs sources provided by the -<literal>nixos-unstable</literal> channel (kept in +<literal>nixos</literal> channel (kept in <filename>/nix/var/nix/profiles/per-user/root/channels/nixos</filename>). To modify NixOS, however, you should check out the latest sources from Git. This is as follows: @@ -41,7 +41,7 @@ branch based on your current NixOS version: $ nixos-version 17.09pre104379.6e0b727 (Hummingbird) -$ git checkout -b local e3938c8 +$ git checkout -b local 6e0b727 </screen> Or, 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 You may want to delete the symlink <filename>~/.nix-defexpr/channels_root</filename> to prevent root’s -NixOS channel from clashing with your own tree.</para> +NixOS channel from clashing with your own tree (this may break the +command-not-found utility though). If you want to go back to the default +state, you may just remove the <filename>~/.nix-defexpr</filename> +directory completely, log out and log in again and it should have been +recreated with a link to the root channels.</para> <!-- FIXME: not sure what this means. <para>You should not pass the base directory |