# enable direnv integration
direnv allow
# check if env variables are setup in current shell without passing them to history
source ./setup.sh
# unset if you've made a mistake
tofu init
tofu plan
Once the tofu apply
is done there should be a ssh key in the directory that enables us to connect to the machine:
ssh root@hetzner-blog
After provisioning NixOs host you might just modify any of *.nix
files and use:
nixos-rebuild switch --target-host root@hetzner-blog --flake .#blog