NixOS configuration for pre-installed Linux computers
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sebastien Bourdeauducq e0f844feb8 install geary 3 months ago
final install geary 3 months ago
README use LAN cache for initial install 3 months ago


Installation commands for NUC:

parted /dev/nvme0n1 -- mklabel gpt
parted /dev/nvme0n1 -- mkpart primary 512MiB 100%
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 configuration to /mnt/etc/nixos
nix-env -iA nixos.git
# work around
rm /etc/nix/nix.conf
cp /etc/static/nix/nix.conf /etc/nix/nix.conf
vi /etc/nix/nix.conf
# set:
substituters =
trusted-public-keys =
nixos-install --no-root-password --flake /mnt/etc/nixos#artiq
# run memtest86

After installation is finalized:
* copy device database to ~/artiq
* set timezone
* comment out openssh.authorizedKeys.keys
* sudo nixos-rebuild boot
* sudo nix-collect-garbage -d
* history clear