From 7302842addd83d49e07f46e214ce300db7608d0c Mon Sep 17 00:00:00 2001 From: Adrian Cowan Date: Mon, 20 Oct 2025 20:52:15 +1100 Subject: [PATCH] Refine install instructions --- 1-nixos-node/0-install-nixos.md | 7 +++++-- 1-nixos-node/1-apply-changes.md | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/1-nixos-node/0-install-nixos.md b/1-nixos-node/0-install-nixos.md index f5703fa..43395a1 100644 --- a/1-nixos-node/0-install-nixos.md +++ b/1-nixos-node/0-install-nixos.md @@ -8,12 +8,14 @@ Steps based on https://nixos.org/manual/nixos/stable/#sec-installation-manual-su ```sh parted /dev/mmcblk0 -- mklabel gpt +# If there is an existing OS you will have to type yes to proceed parted /dev/mmcblk0 -- mkpart root ext4 512MB -8GB parted /dev/mmcblk0 -- mkpart swap linux-swap -8GB 100% parted /dev/mmcblk0 -- mkpart ESP fat32 1MB 512MB parted /dev/mmcblk0 -- set 3 esp on mkfs.ext4 -L nixos /dev/mmcblk0p1 + mkswap -L swap /dev/mmcblk0p2 swapon /dev/mmcblk0p2 mkfs.fat -F 32 -n boot /dev/mmcblk0p3 @@ -25,11 +27,12 @@ nano /mnt/etc/nixos/configuration.nix # Set hostname networking.hostName = "jaglan-beta-mNN"; nixos-install # Set the root password -nano /mnt/etc/nixos/configuration.nix +reboot +nano /etc/nixos/configuration.nix # Enable ssh access # services.openssh.enable = true; # services.openssh.settings.PermitRootLogin = "yes"; -reboot +nixos-rebuild switch ``` If starting from older nixos, upgrade the OS diff --git a/1-nixos-node/1-apply-changes.md b/1-nixos-node/1-apply-changes.md index bcb4911..517abea 100644 --- a/1-nixos-node/1-apply-changes.md +++ b/1-nixos-node/1-apply-changes.md @@ -1,4 +1,8 @@ Avoid applying change to multiple hosts at once as this could take done the cluster, instead apply to each on one at a time +terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m02"]' +terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m03"]' +terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m04"]' +terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m05"]' terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m20"]' terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m21"]' terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m22"]'