nixos-installer/example/install.sh.md
Niklas Gollenstede dd8fc696f4 improve installation scripting:
further improve scripting robustness, add fs.disks.devices.partitionDuringInstallation, ad fs.zfs.datasets.*.recursiveProps, add deploy-system-to-hetzner-vps install script
2023-05-02 02:13:24 +02:00

628 B

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

System Installer Script

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

(Example) Implementation


# Replace the entry point with the same function:
function install-system {( # 1: diskPaths
    trap - EXIT # start with empty traps for sub-shell
    prepare-installer "$@" || exit
    do-disk-setup "$1" || exit
    install-system-to $mnt || exit
)}

# ... could also replace any other function(s) ...