README: add installation commands

This commit is contained in:
Sebastien Bourdeauducq 2022-03-30 18:01:40 +08:00
parent dff63fb609
commit 3361d225cc
3 changed files with 24 additions and 0 deletions

24
README
View File

@ -1,4 +1,28 @@
Installation commands for NUC:
parted /dev/nvme0n1 -- mklabel gpt
parted /dev/nvme0n1 -- mkpart primary 512MiB -8GiB
parted /dev/nvme0n1 -- mkpart ESP fat32 1MiB 512MiB
parted /dev/nvme0n1 -- set 2 esp on
mkfs.ext4 -L nixos /dev/nvme0n1p1
mkfs.fat -F 32 -n boot /dev/nvme0n1p2
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
nixos-generate-config --root /mnt
# copy bootstrap configuration to /mnt/etc/nixos
nixos-install
reboot
# run memtest86
# copy final configuration to /etc/nixos
nixos-rebuild --upgrade boot
reboot
After installation is finalized: After installation is finalized:
* copy device database to ~/artiq * copy device database to ~/artiq
* set timezone * set timezone
* comment out openssh.authorizedKeys.keys * comment out openssh.authorizedKeys.keys
* sudo nixos-rebuild --upgrade boot
* sudo nix-collect-garbage -d
* sudo passwd rabi
* history clear