Skip to content

Getting Started

To install NixOS, boot the target machine using the Minimal ISO image, e.g. on a Ventoy-based USB stick, and run disko to partition the hard-disk followed by nixos-install to install and configure NixOS, e.g.

Terminal window
sudo nix --experimental-features "nix-command flakes" \
run github:nix-community/disko/latest -- \
--mode destroy,format,mount \
--flake gitlab:painless-software/nixos-config#example
Terminal window
sudo nixos-install --flake gitlab:painless-software/nixos-config#example

To manually update an already installed host run nixos-rebuild, e.g.

Terminal window
nixos-rebuild switch --sudo --flake gitlab:painless-software/nixos-config

Auto-upgrade can run this command automatically once a day when the repository configures an upgrade source. When it is configured, you can check the last run and the next scheduled time with:

Terminal window
systemctl status nixos-upgrade.service
Terminal window
systemctl status nixos-upgrade.timer

See CONTRIBUTING for instructions on development and testing.