improve installation, add support for:

ZFS, encryption (keys, keystore, LUKS), bootFS, ephemeral root (tmpfs, ZFS, F2FS, ...), testing in qemu, options & debugging, ... and many small things
This commit is contained in:
Niklas Gollenstede
2022-05-31 03:41:28 +02:00
parent 9ef807877e
commit f56db19b5e
28 changed files with 1765 additions and 222 deletions

View File

@@ -3,14 +3,20 @@
# 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.
This is a minimal example for an adjusted NixOS system installation using the functions defined in [`../lib/setup-scripts/`](../lib/setup-scripts/).
See its [README](../lib/setup-scripts/README.md) for more documentation.
## Implementation
## (Example) Implementation
```bash
function install-system {( set -eu # 1: blockDev
# Replace the entry point with the same function:
function install-system {( set -eu # 1: blockDevs
prepare-installer "$@"
do-disk-setup "$1"
install-system-to $mnt prompt=true
do-disk-setup "${argv[0]}"
init-or-restore-system
install-system-to $mnt
)}
# ... could also replace any other function(s) ...