Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created August 31, 2019 18:49
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 grahamc/4f8e935d14b46a433bd57ee5060217e6 to your computer and use it in GitHub Desktop.
Save grahamc/4f8e935d14b46a433bd57ee5060217e6 to your computer and use it in GitHub Desktop.
Resolving Disk("/dev/nvme0n1") to a real path
"sgdisk" "--new=1:0:4096" "--change-name=1:BIOS" "--typecode=1:ef00" "/dev/disk/by-path/pci-0000:6e:00.0-nvme-1"
Resolving Disk("/dev/nvme0n1") to a real path
"sgdisk" "--new=2:0:3993600" "--change-name=2:SWAP" "--typecode=2:8300" "/dev/disk/by-path/pci-0000:6e:00.0-nvme-1"
Resolving Disk("/dev/nvme0n1") to a real path
"sgdisk" "--new=3:0:0" "--change-name=3:ROOT" "--typecode=3:8300" "/dev/disk/by-path/pci-0000:6e:00.0-nvme-1"
Resolving Disk("/dev/nvme0n1p3") to a real path
"zpool" "create" "-o" "compression=lz4" "-o" "xattr=sa" "-o" "acltype=posixacl" "npool" "disk" "/dev/disk/by-path/pci-0000:6e:00.0-nvme-1-part3"
"zfs" "create" "-o" "mountpoint=legacy" "npool/nix"
"zfs" "create" "-o" "mountpoint=legacy" "npool/home"
"zfs" "create" "npool/zoidberg"
"zfs" "create" "-o" "mountpoint=legacy" "npool/root"
Resolving DiskPartition("/dev/nvme0n1p2") to a real path
npool/root / zfs defaults 0 0
npool/nix /nix zfs defaults 0 0
/dev/disk/by-id/nvme-eui.335a48304bc070000025384600000001-part2 none swap none 0 0
npool/home /home zfs defaults 0 0
Resolving DiskPartition("/dev/nvme0n1p2") to a real path
swapDevices = [
{
device = "/dev/disk/by-id/nvme-eui.335a48304bc070000025384600000001-part2";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment