shrinking portal vm #97

Merged
Richie merged 3 commits from feature/shrinking-portal-vm into main 2026-10-13 20:26:32 -04:00
Showing only changes of commit 646230035c - Show all commits
+29
View File
@@ -0,0 +1,29 @@
# install
## preinstall steps
remove old tailscale entry
## commands
```sh
scp root@149.28.55.47:/etc/ssh/ssh_host_ed25519_key.pub ./temp.pub
nix-shell -p ssh-to-age --run 'cat temp.pub | ssh-to-age'
rm temp.pub
nix-shell -p sops --run "sops updatekeys users/secrets.yaml"
nix run github:nix-community/nixos-anywhere -- --ssh-port 22 --copy-host-keys --build-on local --flake .#portal-1 root@149.28.55.47
ssh richie@149.28.55.47 -p 278
kitty +kitten ssh richie@149.28.55.47 -p 278
```
## Small VM
This was required for a 2gb vm
```sh
sudo tee /etc/default/grub.d/99-nixos-anywhere-disable-kho.cfg >/dev/null <<'EOF'
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT} kho=off"
EOF
sudo update-grub && sudo reboot
```