Step by step
- 
Boot the installer
 - 
Get disk name
 
$ lsblk
- Get disko config
 
$ curl https://git.kabtop.de/Kabbone/nixos-config/raw/branch/main/disko/btrfs_luks.nix -o /tmp/disko-config.nix
- 
Adjust device name
 - 
Let disko partition the disk
 
$ sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /tmp/disko-config.nix
- Check if it got mounted
 
$ mount | grep /mnt
- Continue with NixOS installation Filesystem definitions come from disko, hence "--no-filesystems"
 
$ nixos-generate-config --no-filesystems --root /mnt
$ mv /tmp/disko-config.nix /mnt/etc/nixos
Alternative: continue with normal hardware-config
$ nixos-generate-config --root /mnt