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.
sudo -i
loadkeys fr
passwd root
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