at 22.05-pre 784 B view raw
1<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="ch-testing-installer"> 2 <title>Testing the Installer</title> 3 <para> 4 Building, burning, and booting from an installation CD is rather 5 tedious, so here is a quick way to see if the installer works 6 properly: 7 </para> 8 <programlisting> 9# mount -t tmpfs none /mnt 10# nixos-generate-config --root /mnt 11$ nix-build '&lt;nixpkgs/nixos&gt;' -A config.system.build.nixos-install 12# ./result/bin/nixos-install 13</programlisting> 14 <para> 15 To start a login shell in the new NixOS installation in 16 <literal>/mnt</literal>: 17 </para> 18 <programlisting> 19$ nix-build '&lt;nixpkgs/nixos&gt;' -A config.system.build.nixos-enter 20# ./result/bin/nixos-enter 21</programlisting> 22</chapter>