selfprivacy-nixos-config/README.md

67 lines
1.5 KiB
Markdown
Raw Normal View History

2021-11-15 10:38:19 +00:00
# SelfPrivacy NixOS configuration
This is a NixOS config which builds a SelfPrivacy server distribution
based on data provided in `userdata/userdata.json`.
JSON schema is provided in `userdata/schema.json` for reference.
**hardware-configuration.nix is not included.**
Example JSON config:
```json
{
"backblaze": {
"accountId": "BACKBLAZE_KEY_ID",
"accountKey": "BACKBLAZE_ACCOUNT_KEY",
"bucket": "BACKBLAZE_BUCKET_NAME"
2021-11-15 10:38:19 +00:00
},
2021-11-16 16:22:36 +00:00
"api": {
"token": "API_TOKEN",
"enableSwagger": false
},
2021-11-15 10:38:19 +00:00
"bitwarden": {
"enable": true
},
"cloudflare": {
"apiKey": "CF_TOKEN"
2021-11-15 10:38:19 +00:00
},
"databasePassword": "DB_PASSWORD",
"domain": "DOMAIN",
"hashedMasterPassword": "HASHED_PASSWORD",
"hostname": "DOMAIN",
2021-11-15 10:38:19 +00:00
"nextcloud": {
"enable": true,
"adminPassword": "PASSWORD",
"databasePassword": "PASSWORD"
2021-11-15 10:38:19 +00:00
},
"gitea": {
"enable": true
},
"jitsi": {
"enable": true
},
"ocserv": {
"enable": true
},
"pleroma": {
"enable": true
},
"timezone": "Europe/Moscow",
"resticPassword": "PASSWORD",
2021-11-15 13:35:04 +00:00
"ssh": {
"enable": true,
"rootSshKeys": [
"ssh-ed25519 KEY user@host"
],
"passwordAuthentication": true
},
2021-11-15 15:12:34 +00:00
"username": "LUSER",
2021-11-15 10:38:19 +00:00
"users": [
{
2021-11-15 15:12:34 +00:00
"hashedPassword": "OTHER_USER_HASHED_PASSWORD",
"username": "OTHER_USER"
2021-11-15 10:38:19 +00:00
}
]
}
```