From d0db1ecb2175f0611f133594d66ef7bf42d51510 Mon Sep 17 00:00:00 2001 From: hensoko <hensoko@noreply.git.pub.solar> Date: Mon, 17 Feb 2025 19:17:32 +0000 Subject: [PATCH] Update docs/nixos-anywhere.md --- docs/nixos-anywhere.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/nixos-anywhere.md b/docs/nixos-anywhere.md index 8cabce9..b7f67e4 100644 --- a/docs/nixos-anywhere.md +++ b/docs/nixos-anywhere.md @@ -9,16 +9,22 @@ curl -L https://github.com/nix-community/nixos-images/releases/download/nixos-un /root/kexec/run ``` +## Run Disko + +``` +nix run github:nix-community/nixos-anywhere -- --flake .#<hostname> --target-host root@<host> --phases disko +``` + ## On Target: Create inital ssh host key used in initrd ``` -mkdir -p /etc/secrets/initrd -ssh-keygen -t ed25519 -f /etc/secrets/initrd/ssh_host_ed25519_key +mkdir -p /mnt/etc/secrets/initrd +ssh-keygen -t ed25519 -f /mnt/etc/secrets/initrd/ssh_host_ed25519_key ``` ## Run NixOS Anywhere ``` -nix run github:nix-community/nixos-anywhere -- --flake .#<host> root@<ip> +nix run github:nix-community/nixos-anywhere -- --flake .#<hostname> --target-host root@<host> --phases install,reboot ```