From 9b8847eb91bb8f610ac1b2b4c28bafdae875e963 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 13 Oct 2013 16:57:09 +0200 Subject: [PATCH] Document nixos-install --- nixos/doc/manual/man-nixos-install.xml | 78 ++++++++++++++++++++++++++ nixos/doc/manual/man-pages.xml | 7 ++- 2 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 nixos/doc/manual/man-nixos-install.xml diff --git a/nixos/doc/manual/man-nixos-install.xml b/nixos/doc/manual/man-nixos-install.xml new file mode 100644 index 00000000000..d5157859857 --- /dev/null +++ b/nixos/doc/manual/man-nixos-install.xml @@ -0,0 +1,78 @@ + + + + nixos-install + 8 + NixOS + + + + + nixos-install + install NixOS + + + + + nixos-install + + + + +Description + +This command installs NixOS in the file system mounted on +/mnt, based on the NixOS configuration specified +in /mnt/etc/nixos/configuration.nix. It performs +the following steps: + + + + It copies Nix and its dependencies to + /mnt/nix/store. + + It runs Nix in /mnt to build + the NixOS configuration specified in + /mnt/etc/nixos/configuration.nix. + + It installs the GRUB boot loader on the device + specified in the option , + and generates a GRUB configuration file that boots into the NixOS + configuration just installed. + + + + + +This command is idempotent: if it is interrupted or fails due to +a temporary problem (e.g. a network issue), you can safely re-run +it. + + + + +Examples + +A typical NixOS installation is done by creating and mounting a +file system on /mnt, generating a NixOS +configuration in +/mnt/etc/nixos/configuration.nix, and running +nixos-install. For instance, if we want to install +NixOS on an ext4 file system created in +/dev/sda1: + + +$ mkfs.ext4 /dev/sda1 +$ mount /dev/sda1 /mnt +$ nixos-generate-config --root /mnt +$ # edit /mnt/etc/nixos/configuration.nix +$ nixos-install + + + + + + + diff --git a/nixos/doc/manual/man-pages.xml b/nixos/doc/manual/man-pages.xml index 5178d595fda..467864e208b 100644 --- a/nixos/doc/manual/man-pages.xml +++ b/nixos/doc/manual/man-pages.xml @@ -22,9 +22,10 @@ - - - + + + +