Configuration of my infrastructure hosts
Infra base
A repo for the configs of my base infrastructure, using docker swarm as my orchestration tool of choice.
CI
The repo has an auto update feature, this updates the lockfile once in a while.
It requires an api key, with repo read and write permissions, called REPO_TOKEN.
Deploying
- (optionally) set a password for the root user, allowing access via ssh
- make the
/config/wg_interconnect_keyfile contain the private key for client on the interconnect network - add git to the shell with
nix-shell -p git - clone the repo
sudo nixos-rebuild switch --flake .#<HOSTNAME_TO_DEPLOY>- set the password for the user with
passwd <USER> - if a drive is available, make it owned by the correct user and group
- reboot
Manually updating
Either start the upgrade service via sudo systemctl start nixos-upgrade.service.
Or pull the repo, and run sudo nixos-rebuild switch --flake .#$(hostname).
Todo
- distributed local storage (as some services have sqlite databases, and i don't know how to lock them over a fileshare)