1<section xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 version="5.0"
5 xml:id="sec-uefi-installation">
6
7<title>UEFI Installation</title>
8
9<para>NixOS can also be installed on UEFI systems. The procedure
10is by and large the same as a BIOS installation, with the following
11changes:
12
13<itemizedlist>
14 <listitem>
15 <para>You should boot the live CD in UEFI mode (consult your
16 specific hardware's documentation for instructions). You may find
17 the <link
18 xlink:href="http://www.rodsbooks.com/refind">rEFInd
19 boot manager</link> useful.</para>
20 </listitem>
21 <listitem>
22 <para>Instead of <command>fdisk</command>, you should use
23 <command>gdisk</command> to partition your disks. You will need to
24 have a separate partition for <filename>/boot</filename> with
25 partition code EF00, and it should be formatted as a
26 <literal>vfat</literal> filesystem.</para>
27 </listitem>
28 <listitem>
29 <para>You must set <option>boot.loader.systemd-boot.enable</option> to
30 <literal>true</literal>. <command>nixos-generate-config</command>
31 should do this automatically for new configurations when booted in
32 UEFI mode.</para>
33 </listitem>
34 <listitem>
35 <para>After having mounted your installation partition to
36 <code>/mnt</code>, you must mount the <code>boot</code> partition
37 to <code>/mnt/boot</code>.</para>
38 </listitem>
39 <listitem>
40 <para>You may want to look at the options starting with
41 <option>boot.loader.efi</option> and <option>boot.loader.systemd-boot</option>
42 as well.</para>
43 </listitem>
44</itemizedlist>
45</para>
46
47</section>