nixos-installer/example/install.sh.md
Niklas Gollenstede 1f72d9bf26 init
2022-05-09 14:36:47 +02:00

485 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 @{config.th.minify.topLevel:-}
)}