nixos-installer/example/install.sh.md

454 B

#!/usr/bin/env bash
<< '```bash'

System Installer Script

This is a minimal example for a NixOS system installation function using the functions defined in ../lib/setup-scripts/. See its README for more documentation.

Implementation

function install-system {( set -eu # 1: blockDev
    prepare-installer "$@"
    do-disk-setup "$1"
    install-system-to $mnt prompt=true
)}