45 lines
1.2 KiB
Markdown
45 lines
1.2 KiB
Markdown
# Nix Infra Config
|
|
Using [colmena](https://github.com/zhaofengli/colmena)
|
|
|
|
## Hosts
|
|
- `Agathas-Mac-mini`: macOS/nix-darwin desktop
|
|
- `bloodletting`: Main server / technogothic.net
|
|
- `ritual`: macOS/nix-darwin laptop
|
|
- `watchtower`: Home server
|
|
|
|
### Manual setup on blank system/migrations
|
|
Bloodletting:
|
|
- `colmena apply` - deploy config
|
|
- `passwd` - set user passwords
|
|
- rsync state:
|
|
- `/var/lib`:
|
|
- `acme/.lego`
|
|
- `bin_rs`
|
|
- `fail2ban`
|
|
- `grafana`
|
|
- `headscale`
|
|
- `hedgedoc`
|
|
- `mastodon`
|
|
- dump and import Postgres and Redis DBs
|
|
- `matterbridge`
|
|
- `mc-e2e`
|
|
- `mc-enigmatica-8`
|
|
- `mstdn-ebooks`
|
|
- `nyandroid`
|
|
- `prometheus2`
|
|
- `prosody`
|
|
- `/home/ftp`
|
|
|
|
Agathas-Mac-mini/Ritual:
|
|
- `darwin-rebuild switch --flake .` - deploy config
|
|
|
|
[Last commit which includes BSPWM configs](https://git.lain.faith/sorceress/nix-infra/commit/e60bbd7f41bdb4456319637f38a25425b6f5fef7)
|
|
|
|
### Rsyncd Modules
|
|
Modded minecraft instance rsync modules can be accessed through `mc-[modpack]@bloodletting::mc-[modpack]` with `--rsh=ssh`
|
|
|
|
### Updating mastodon
|
|
```sh
|
|
cd common/pkgs/mastodon && ./update.sh --owner AgathaSorceress --rev <commit hash>
|
|
```
|