Requirements:
This section provides a summary of how to install NixOS with Fedimint and Bitcoin on a Hetzner VPS.
It uses the ssh-key from hosts/_users/default.nix
as ssh password is disable.
just format user@ip hetzner
This command uses nixos-anywhere to start the installation process. You will be prompted to enter a password to encrypt the disk.
After the machine reboots for the installation, the disk will be locked and needs to be unlocked by entering the passphrase after SSH into init boot:
ssh -p 2222 user@ip
This unlocks the disk and continues the boot process. Your SSH session will be dropped since port 2222 is used only for boot disk unlocking.
Once the boot process is complete, you can access the machine with: port is meant only for boot disk unlock.
ssh -p 22 user@ip
just update user@ip hetzner
If necessary, update the disk device in hosts/hetzner/vps/encrypted-disks.nix
Here is my configuration for DNS records setup:
Type | Host | Value |
---|---|---|
A Record | @ | [IP-REDACTED] |
A Record | admin | [IP-REDACTED] |
A Record | api | [IP-REDACTED] |
A Record | p2p | [IP-REDACTED] |
- Go to the Admin URL:
https://$fmAdminFqdn
(e.g.:https://admin.myhost/
). - Click
Connnect a Service
and nenter the address:wss://$fmApiFqdn/ws/
(e.g.wss://api.myhost/ws/
).
Note: Don’t forget the trailing / in the URL, or it may not work.