Skip to content

Instantly share code, notes, and snippets.

@dmjio
Created November 19, 2018 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmjio/74e24763efacc1346c15631048dccc01 to your computer and use it in GitHub Desktop.
Save dmjio/74e24763efacc1346c15631048dccc01 to your computer and use it in GitHub Desktop.
parted /dev/nvme0 -- mklabel gpt
parted /dev/nvme0-- mkpart primary 512MiB -8GiB
parted /dev/nvme0-- mkpart primary linux-swap -8GiB 100%
parted /dev/nvme0-- mkpart ESP fat32 1MiB 512MiB
parted /dev/nvme0 -- set 3 boot on
cryptsetup luksFormat /dev/nvme0
cryptsetup luksOpen /dev/nvme0 crypted
mkfs.ext4 -L nixos /dev/mapper/crypted
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot <— can’t find /by-label/boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment