2023-02-10 17:34:46 +00:00
|
|
|
# Nix Infra Config
|
2023-03-07 19:24:57 +00:00
|
|
|
Using [colmena](https://github.com/zhaofengli/colmena)
|
2023-02-10 17:34:46 +00:00
|
|
|
|
|
|
|
## Hosts
|
|
|
|
- `bloodletting`: Main server
|
2023-03-26 16:14:49 +00:00
|
|
|
- `ritual`: NixOS laptop
|
2023-02-10 17:34:46 +00:00
|
|
|
|
2023-03-07 19:25:16 +00:00
|
|
|
### Manual setup on blank system/migrations
|
2023-03-26 16:14:49 +00:00
|
|
|
Bloodletting:
|
2023-03-07 19:24:57 +00:00
|
|
|
- `colmena apply` - deploy config
|
2023-02-10 17:34:46 +00:00
|
|
|
- `passwd` - set user passwords
|
|
|
|
- rsync state:
|
|
|
|
- `/var/lib`:
|
|
|
|
- `acme/.lego`
|
|
|
|
- `bin_rs`
|
|
|
|
- `fail2ban`
|
|
|
|
- `grafana`
|
|
|
|
- `homepage`
|
2023-04-30 10:49:28 +00:00
|
|
|
- `mastodon`
|
|
|
|
- dump and import Postgres and Redis DBs
|
2023-02-10 17:34:46 +00:00
|
|
|
- `matterbridge`
|
2023-03-07 19:24:57 +00:00
|
|
|
- `mc-e2e`
|
2023-05-01 09:00:19 +00:00
|
|
|
- `mc-enigmatica-8`
|
2023-02-10 17:34:46 +00:00
|
|
|
- `mstdn-ebooks`
|
|
|
|
- `nyandroid`
|
|
|
|
- `prometheus2`
|
2023-03-26 16:14:49 +00:00
|
|
|
- `/home/ftp`
|
|
|
|
|
|
|
|
Ritual:
|
|
|
|
- `colmena apply[-local]` - deploy config
|
|
|
|
- `mkdir -p ~/.gnupg` - create directory for gnupg
|
2023-07-07 14:04:42 +00:00
|
|
|
- copy `~/.ssh/id_ed25519`
|
2023-03-26 16:14:49 +00:00
|
|
|
- manual configuration/login:
|
|
|
|
- Firefox
|
|
|
|
- Copy extension data
|
|
|
|
- Element
|
|
|
|
- Telegram Desktop
|
|
|
|
- Geary
|
2023-07-07 14:04:42 +00:00
|
|
|
- Obsidian
|
2023-09-14 14:25:34 +00:00
|
|
|
- Spicetify
|
|
|
|
- Copy plugins/themes/patches
|
2023-02-10 17:34:46 +00:00
|
|
|
|
2023-03-07 19:25:16 +00:00
|
|
|
### Rsyncd Modules
|
|
|
|
Modded minecraft instance rsync modules can be accessed through `mc-[modpack]@bloodletting::mc-[modpack]` with `--rsh=ssh`
|
|
|
|
|
2023-07-27 18:14:07 +00:00
|
|
|
### Updating mastodon
|
|
|
|
```sh
|
2023-12-17 20:05:44 +00:00
|
|
|
cd common/pkgs/mastodon && ./update.sh --owner AgathaSorceress --rev <commit hash>
|
2023-07-27 18:14:07 +00:00
|
|
|
```
|
|
|
|
|
2023-02-10 17:34:46 +00:00
|
|
|
## Reference configs used
|
|
|
|
- https://github.com/Xe/nixos-configs
|
2023-12-17 20:05:44 +00:00
|
|
|
- https://git.nora.codes/nora/nixconfig
|