nix-infra/README.md

54 lines
1.2 KiB
Markdown
Raw Normal View History

# Nix Infra Config
2023-03-07 19:24:57 +00:00
Using [colmena](https://github.com/zhaofengli/colmena)
## Hosts
- `bloodletting`: Main server
2023-03-26 16:14:49 +00:00
- `ritual`: NixOS laptop
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
- `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
- `matterbridge`
2023-03-07 19:24:57 +00:00
- `mc-e2e`
2023-05-01 09:00:19 +00:00
- `mc-enigmatica-8`
- `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
- copy `~/.ssh/id_ed25519`
2023-03-26 16:14:49 +00:00
- manual configuration/login:
- Firefox
- Copy extension data
- Element
- Telegram Desktop
- Geary
- Obsidian
- Spicetify
- Copy plugins/themes/patches
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
```
## Reference configs used
- https://github.com/Xe/nixos-configs
2023-12-17 20:05:44 +00:00
- https://git.nora.codes/nora/nixconfig