This guide will walk you through using the NixOS AutoInstaller script from the command line interface (CLI) in the minimal NixOS installer.
- Minimal NixOS Installer: Ensure you have the minimal NixOS installer booted up. You can download it from the NixOS download page.
- Internet Connection: Make sure you have an active internet connection.
Boot your machine using the minimal NixOS installer ISO. You should be greeted with a shell prompt. For more details, refer to the NixOS Installation Guide.
Ensure you have an active internet connection. You can use nmtui or iwctl for wireless connections. For more information on these tools, check out the NetworkManager page and the iwd page.
# For wired connections, it should be automatic. For wireless:
nmtui
# or
iwctlUse the nix-shell command to temporarily install Git.
nix-shell -p gitClone the NixOS AutoInstaller repository from GitHub.
git clone https://github.com/OpusNano/NixOS-AutoInstaller.git
cd NixOS-AutoInstallerEnsure the script is executable.
sudo chmod +x nixos_setup.shExecute the script to start the installation process.
sudo bash ./nixos_setup.shThe script will guide you through the installation process. Follow the on-screen instructions to complete the installation.
Once the installation is complete, reboot your system.
reboot- Script Not Executable: If you encounter a “Permission denied” error, ensure the script has executable permissions (
chmod +x install.sh). - Internet Connection Issues: Verify your network settings and ensure you are connected to the internet.
- Dependency Issues: If the script fails due to missing dependencies, you may need to manually install them using
nix-env -i.
You have successfully used the NixOS AutoInstaller script to install NixOS. For more details, refer to the repository.
Happy installing!