Installation of Nixos minimal

NixOS is a Linux distribution built on top of the Nix package manager. It offers a declarative approach to system configuration management, allowing users to define their system state as code. In this guide, we will walk through the installation of the NixOS minimal system.

Prerequisites

Installation Steps

  1. Insert the bootable USB drive into your computer and boot from it.
  2. When prompted, select the "NixOS minimal" option from the boot menu.
sudo -i
loadkeys fr
passwd root

  1. Configure your network settings by setting a static IP address and adding a default route. For example, to set the IP address to 192.168.0.2/24 and add a default route through 192.168.0.1, run the following commands:
ip addr add 192.168.0.2/24 dev eth0
ip route add default via 192.168.0.1

add DNS

# /etc/nixos/extra-init-config.sh
echo "nameserver 10.2.10.2" > /etc/resolv.conf

Note that these commands will only set the IP address and default route temporarily, until the next reboot. If you want to make these changes permanent, you will need to modify the configuration file generated in step 3 or use a different method, such as configuring your network settings in your router or using NixOS's declarative system configuration management.

You can now log in with SSH