NixOS Installation Guide: Difference between revisions

Bzadm (talk | contribs)
fix typo
Pigeon (talk | contribs)
m fix typo in #Custom_configuration
 
(2 intermediate revisions by 2 users not shown)
Line 187: Line 187:
# mkfs.fat -F 32 -n boot /dev/sdX1
# mkfs.fat -F 32 -n boot /dev/sdX1
# mkfs.ext4 /dev/sdX2 -L nixos
# mkfs.ext4 /dev/sdX2 -L nixos
# mount /dev/disk/by-label/root /mnt
# mount /dev/disk/by-label/nixos /mnt
# mkdir -p /mnt/boot
# mkdir -p /mnt/boot
# mount /dev/disk/by-label/boot /mnt/boot
# mount /dev/disk/by-label/boot /mnt/boot
Line 201: Line 201:
# nano /mnt/etc/nixos/configuration.nix
# nano /mnt/etc/nixos/configuration.nix
</syntaxhighlight>
</syntaxhighlight>
For information on working with a system configuration, see [[NixOS system configuration]]. For desktop-specific configurations, see [[NixOS as a desktop]].


Most essential changes:
Most essential changes:
Line 230: Line 232:
NixOS supports multiple [[Bootloader|bootloaders]] such as [[GNU GRUB]] and [[Systemd/boot]].
NixOS supports multiple [[Bootloader|bootloaders]] such as [[GNU GRUB]] and [[Systemd/boot]].


Sysyemd-boot is the recommended bootloader. The following example demonstrates how to enable systemd-boot in your configuration:
Systemd-boot is the recommended bootloader. The following example demonstrates how to enable systemd-boot in your configuration:


{{file|/mnt/etc/nixos/configuration.nix|nix|
{{file|/mnt/etc/nixos/configuration.nix|nix|
Line 253: Line 255:
}}
}}


<!--T:56-->
== NixOS installation ==
== NixOS installation ==
<syntaxhighlight lang="console">
<syntaxhighlight lang="console">