2023-08-17 21:46:39 +05:00
|
|
|
# Nixos
|
|
|
|
|
2023-08-19 12:53:36 +05:00
|
|
|
My home server settings.
|
2023-08-17 21:46:39 +05:00
|
|
|
|
2023-08-19 12:53:36 +05:00
|
|
|
## Upgrade
|
2023-08-17 21:46:39 +05:00
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo nixos-rebuild --flake .#comfycamp switch
|
|
|
|
```
|
|
|
|
|
2023-08-19 12:58:28 +05:00
|
|
|
## Services
|
|
|
|
|
|
|
|
| Name | Url |
|
|
|
|
| --- | --- |
|
|
|
|
| Mastodon | [m.comfycamp.space](https://m.comfycamp.space) |
|
|
|
|
| Synapse | matrix.comfycamp.space |
|
|
|
|
| Jellyfin | Private |
|
|
|
|
| Photoprism | Private |
|
|
|
|
| Nextcloud | Private |
|
|
|
|
|
2023-08-19 12:53:36 +05:00
|
|
|
## Required files
|
|
|
|
|
|
|
|
### Acme
|
|
|
|
|
|
|
|
- /var/lib/secrets/certs.txt:
|
|
|
|
|
2023-08-17 21:46:39 +05:00
|
|
|
```bash
|
|
|
|
REGRU_USERNAME=xxx
|
|
|
|
REGRU_PASSWORD=xxx
|
|
|
|
```
|
|
|
|
|
2023-08-19 12:53:36 +05:00
|
|
|
The file must be available to the `acme` user.
|
|
|
|
|
|
|
|
### Mastodon
|
|
|
|
|
|
|
|
- /var/lib/mastodon/otp-secret.txt
|
|
|
|
- /var/lib/mastodon/postgres.txt
|
|
|
|
- /var/lib/mastodon/secret-key-base.txt
|
|
|
|
- /var/lib/mastodon/smtp-password.txt
|
|
|
|
- /var/lib/mastodon/vapid-private-key.txt
|
|
|
|
- /var/lib/mastodon/vapid-public-key.txt
|
|
|
|
|
|
|
|
### Nextcloud
|
|
|
|
|
|
|
|
- /var/lib/nextcloud/admin-pass.txt
|
|
|
|
|
|
|
|
### Synapse
|
|
|
|
|
|
|
|
- /var/lib/matrix-synapse/config.yml
|
|
|
|
|
|
|
|
```yml
|
|
|
|
registration_shared_secret: xxx
|
|
|
|
macaroon_secret_key: xxx
|
|
|
|
form_secret: xxx
|
|
|
|
```
|
2023-08-19 19:41:37 +05:00
|
|
|
|
|
|
|
## Mail
|
|
|
|
|
|
|
|
- /var/lib/mta-sts/.well-known/mta-sts.txt
|
|
|
|
|
|
|
|
```
|
|
|
|
version: STSv1
|
|
|
|
mode: enforce
|
|
|
|
max_age: 604800
|
|
|
|
mx: mx.comfycamp.space
|
|
|
|
```
|
|
|
|
|
|
|
|
The file must be available to the `nginx` user.
|