mirror of
https://github.com/NiklasGollenstede/nixos-installer.git
synced 2024-11-25 01:14:13 +01:00
17 lines
485 B
Markdown
17 lines
485 B
Markdown
|
#!/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:-}
|
||
|
)}
|