feat(installer): enhance NixOS installer with SSH access and encryption password input
This commit is contained in:
@@ -8,7 +8,7 @@ Build a bootable NixOS ISO with the installer preinstalled:
|
||||
nix build .#iso
|
||||
```
|
||||
|
||||
Write `result/iso/nixos-zfs-installer.iso` to a USB stick (for example with `dd`) or boot it in a VM. The image is the minimal NixOS installation CD with ZFS enabled and `nixos-installer` on `PATH`, so once booted you can run:
|
||||
Write `result/iso/nixos-zfs-installer.iso` to a USB stick (for example with `dd`) or boot it in a VM. The image is the minimal NixOS installation CD with ZFS enabled and `nixos-installer` on `PATH`. SSH is enabled and the `nixos` and `root` accounts use the password `nixos`, so you can also run the installer remotely. Once booted:
|
||||
|
||||
```sh
|
||||
sudo nixos-installer
|
||||
@@ -42,7 +42,7 @@ Validate the live environment first with:
|
||||
./nixos-installer --check
|
||||
```
|
||||
|
||||
Set `ENCRYPT_KEY` to enable LUKS during install:
|
||||
Paste a value into the TUI encryption password field to enable LUKS during install, or set `ENCRYPT_KEY`:
|
||||
|
||||
```sh
|
||||
sudo env ENCRYPT_KEY='change-me' ./nixos-installer
|
||||
|
||||
Reference in New Issue
Block a user