From 978121c75e9737b285ddfbc40bdf67e8ae5e73f5 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Mon, 5 Aug 2024 06:27:02 +0100 Subject: [PATCH] Instructions for setting up a new host. --- setup-host.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 setup-host.txt diff --git a/setup-host.txt b/setup-host.txt new file mode 100644 index 0000000..4eb43ce --- /dev/null +++ b/setup-host.txt @@ -0,0 +1,11 @@ +* boot target from NixOS installer USB +* passwd for nixos user on target +* note IP address, test that ssh as nixos works +* on target: nixos-generate-config --no-filesystems, copy to base host +* on target: dd if=/dev/random of=/dev/disk/by-id/ bs=4096 count=1 +* on target: dd if=/dev/disk/by-id/ of=key.bin bs=4096 count=1 +* copy key.bin to hosts// +* use the generated config to create new config in hosts/ +* set the actual device IDs in hosts//disk-config.nix +* on base host: nix run github:nix-community/nixos-anywhere -- --flake '.#' nixos@ +* after confirmed working, update hosts/disk-config.nix to set keyFile to /dev/sdX (otherwise when the USB drive fails it's harder to replace)