Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 591 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 591 Bytes

blog_deployment

# 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

Updating the provisioned nixos host

After provisioning NixOs host you might just modify any of *.nix files and use:

nixos-rebuild switch --target-host root@hetzner-blog --flake .#blog