More actions
Created page with "Category:Technical guides = introduction = this uses flakes # obtain nixos ISO (graphical installer is nicer i guess) # boot it # open up a terminal and partition disk # wipe your disk: blkdiscard /dev/nvme0n1 = partition your disk = # create boot partition # create root partition # parted <device> # mklabel gpt # mkpart partitoin name? boot file system type? fat32 start? 0% end? 2GB # mkpart partitoin name? root file system type? btrfs start? 2GB end? 100% # set 1..." |
(No difference)
|
Revision as of 21:16, 30 August 2024
introduction
this uses flakes
- obtain nixos ISO (graphical installer is nicer i guess)
- boot it
- open up a terminal and partition disk
- wipe your disk: blkdiscard /dev/nvme0n1
partition your disk
- create boot partition
- create root partition
- parted <device>
- mklabel gpt
- mkpart
partitoin name? boot file system type? fat32 start? 0% end? 2GB
- mkpart
partitoin name? root file system type? btrfs start? 2GB end? 100%
- set 1 esp on
- set 1 boot on
- quit
- mkfs.btrfs /dev/<root partition>
- mkfs.vfat -F32 /dev/<boot partition>
mount your disk
- mount /dev/<root partition> /mnt
- mkdir /mnt/boot
- mount /dev/<boot partition> /mnt/boot
generate config
sudo nixos-generate-config --root /mnt nvim /mnt/etc/nixos/configuration.nix nvim /mnt/etc/nixos/hardware-configuration.nix
install
sudo nixos-install