Bash script to download and install NixOS using kexec
NixOS images
.
- Configurable installation source, version tag, architecture and interactivity
- Automatic system architecture detection
- Configuration via environment files
- Generating a download URL
- Booting with kexec
Run the following snippet with root priviliges on the machine you wish to install nixos to.
bash <(curl -sSLf https://github.com/moritztim/nixos-kexec-installer/releases/latest/download/nixos-kexec.sh) --install
- Generate an installer URL
./run.sh
- Install NixOS (requires root):
sudo ./run.sh --install
To build a standalone script, run:
./build.sh
The script uses two configuration files:
default.env
: Default configurationcustom.env
: Optional custom configuration that overrides the defaults set indefault.env
The configuration options are documented in the default configuration file.
- Bash shell
- curl
- Root privileges
- tar
- Backup important data before installation
- Review the URL before proceeding. To do this, run the script without the
--install
flag once and if you're happy, run it again, with the same configuration, and this time with the flag.
This documentation was created with non-creative assistance from
Anthropic's Claude 3.5 Sonnet
.