Created
May 6, 2019 16:35
-
-
Save dmjio/3e31ffc13a2f73a43edfdf83e92c1630 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# parted /dev/nvme0n1 -- mklabel gpt | |
# parted /dev/nvme0n1 -- mkpart primary 512MiB -8GiB | |
# parted /dev/nvme0n1 -- mkpart primary linux-swap -8GiB 100% | |
# parted /dev/nvme0n1 -- mkpart ESP fat32 1MiB 512MiB | |
# parted /dev/nvme0n1 -- set 3 boot on | |
# mkfs.ext4 -L nixos /dev/nvme0n1p1 | |
# mkswap -L swap /dev/nvme0n1p2 | |
# mkfs.fat -F 32 -n boot /dev/nvme0n1p3 | |
# mount /dev/disk/by-label/nixos /mnt | |
# mkdir -p /mnt/boot | |
# mount /dev/disk/by-label/boot /mnt/boot | |
# swapon /dev/nvme0n1p2 | |
# nixos-generate-config --root /mnt | |
# nixos-install | |
# reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment