nixos-installer/example/install.sh.md

17 lines
485 B
Markdown
Raw Normal View History

2022-05-09 13:20:43 +02:00
#!/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/`](../lib/setup-scripts/). See its [README](../lib/setup-scripts/README.md) for more documentation.
## Implementation
```bash
function install-system {( set -eu # 1: blockDev
prepare-installer "$@"
do-disk-setup "$1"
install-system-to $mnt prompt=true @{config.th.minify.topLevel:-}
)}