From b6070d0f7589d6ae0cad246ca28178952acc045b Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sat, 24 Aug 2024 03:06:17 +0200 Subject: [PATCH] docs: initial docs for nixos-anywhere and garage setup --- docs/garage.md | 19 +++++++++++++++++++ docs/nixos-anywhere.md | 13 +++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 docs/garage.md create mode 100644 docs/nixos-anywhere.md diff --git a/docs/garage.md b/docs/garage.md new file mode 100644 index 00000000..de40b051 --- /dev/null +++ b/docs/garage.md @@ -0,0 +1,19 @@ +``` +export GARAGE_RPC_SECRET= + +garage node id + +garage node connect +garage node connect + +garage status + +#Zones +#DE-1 DE-2 NL-1 + +garage layout assign fdaa -z DE-1 -c 800G -t trinkgenossin +garage layout assign 8835 -z DE-2 -c 800G -t blue-shell +garage layout assign 73da -z NL-1 -c 800G -t delite +garage layout show +garage layout apply --version 1 +``` diff --git a/docs/nixos-anywhere.md b/docs/nixos-anywhere.md new file mode 100644 index 00000000..a8f7925e --- /dev/null +++ b/docs/nixos-anywhere.md @@ -0,0 +1,13 @@ +``` +curl -L https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/nixos-kexec-installer-noninteractive-x86_64-linux.tar.gz | tar -xzf- -C /root +/root/kexec/run +``` + +``` +mkdir -p /etc/secrets/initrd +ssh-keygen -t ed25519 -f /etc/secrets/initrd/ssh_host_ed25519_key +``` + +``` +nix run github:nix-community/nixos-anywhere -- --flake .#blue-shell root@194.13.83.205 +```