Manual: Update nixos-checkout comments.
svn path=/nixos/trunk/; revision=17955
This commit is contained in:
parent
ca6f5e6cd4
commit
f656741395
1 changed files with 11 additions and 7 deletions
|
@ -365,22 +365,26 @@ whether everything compiles cleanly.</para>
|
||||||
<title>Keeping NixOS up to date</title>
|
<title>Keeping NixOS up to date</title>
|
||||||
|
|
||||||
<para>The currently best way to keep your NixOS installation up to
|
<para>The currently best way to keep your NixOS installation up to
|
||||||
date is to track the NixOS Subversion repository. You should replace
|
date is to track the NixOS Subversion repository. The program
|
||||||
the static NixOS/Nixpkgs sources installed in
|
<command>nixos-checkout</command> does that for you. It will
|
||||||
<filename>/etc/nixos</filename> with a Subversion checkout. The
|
check if the NixOS/NixPkgs sources are present and if they are under a
|
||||||
program <command>nixos-checkout</command> does that for you (and it
|
version control system (VCS) before updating them to the latest version. If your
|
||||||
also installs Subversion into your current profile).</para>
|
sources are not under a VCS, then you can rename them before
|
||||||
|
running <command>nixos-checkout</command> which will checkout the sources.</para>
|
||||||
|
|
||||||
<para>To build the latest and greatest, do
|
<para>To build the latest and greatest, do
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
$ svn up /etc/nixos/nixos
|
$ nixos-checkout
|
||||||
$ svn up /etc/nixos/nixpkgs
|
|
||||||
$ nixos-rebuild switch</screen>
|
$ nixos-rebuild switch</screen>
|
||||||
|
|
||||||
(Or instead of <literal>switch</literal>, use any of the alternatives
|
(Or instead of <literal>switch</literal>, use any of the alternatives
|
||||||
shown in <xref linkend="sec-changing-config"/>.)</para>
|
shown in <xref linkend="sec-changing-config"/>.)</para>
|
||||||
|
|
||||||
|
<para>To customize your VCS or to handle more repositories with
|
||||||
|
<command>nixos-checkout</command>, you can have a look at the
|
||||||
|
options <option>installer.repos.nixos</option>
|
||||||
|
and <option>installer.repos.nixpkgs</option>.</para>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue