nixos-config/disko
2024-07-15 21:29:57 +02:00
..
btrfs_luks.nix disko: add opt 2024-07-15 21:29:57 +02:00
btrfs.nix disko: fix labels and config 2023-12-20 14:02:15 +01:00
mount.sh hosts: kabtopci: fix path and add mount script 2024-06-11 17:14:24 +02:00
nas_luks.nix server: tweak postgresql to more caching 2024-02-12 12:34:15 +01:00
README.md disko: README fixup 2023-12-20 11:45:24 +01:00

Step by step

  1. Boot the installer

  2. Get disk name

$ lsblk
  1. Get disko config
$ curl https://git.kabtop.de/Kabbone/nixos-config/raw/branch/main/disko/btrfs_luks.nix -o /tmp/disko-config.nix
  1. Adjust device name

  2. Let disko partition the disk

$ sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /tmp/disko-config.nix
  1. Check if it got mounted
$ mount | grep /mnt
  1. 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