2022-03-30 18:01:40 +08:00
|
|
|
Installation commands for NUC:
|
|
|
|
|
|
|
|
parted /dev/nvme0n1 -- mklabel gpt
|
2022-06-17 16:05:46 +08:00
|
|
|
parted /dev/nvme0n1 -- mkpart primary 512MiB 100%
|
2022-03-30 18:01:40 +08:00
|
|
|
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
|
2022-06-11 22:31:48 +08:00
|
|
|
# copy configuration to /mnt/etc/nixos
|
2022-07-19 19:04:21 +08:00
|
|
|
nix-env -iA nixos.git
|
2023-02-04 18:29:32 +08:00
|
|
|
# work around https://github.com/NixOS/nixpkgs/issues/209819
|
|
|
|
rm /etc/nix/nix.conf
|
|
|
|
cp /etc/static/nix/nix.conf /etc/nix/nix.conf
|
|
|
|
vi /etc/nix/nix.conf
|
|
|
|
# set: substituters = https://cache.nixos.org/ https://nixbld.m-labs.hk/
|
|
|
|
# set: trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc=
|
2023-01-05 11:42:14 +08:00
|
|
|
nixos-install --no-root-password --flake /mnt/etc/nixos#artiq
|
2022-03-30 18:01:40 +08:00
|
|
|
reboot
|
|
|
|
# run memtest86
|
|
|
|
|
2022-03-15 17:51:21 +08:00
|
|
|
After installation is finalized:
|
|
|
|
* copy device database to ~/artiq
|
|
|
|
* set timezone
|
|
|
|
* comment out openssh.authorizedKeys.keys
|
2023-01-04 10:35:32 +08:00
|
|
|
* sudo nixos-rebuild boot
|
2022-03-30 18:01:40 +08:00
|
|
|
* sudo nix-collect-garbage -d
|
|
|
|
* history clear
|