You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Co-authored-by: inexcode <inex.code@selfprivacy.org> Co-authored-by: NaiJi ✨ <naiji@udongein.xyz> Reviewed-on: #31 |
20 hours ago | |
---|---|---|
api | 3 months ago | |
backup | 7 months ago | |
git | 3 months ago | |
letsencrypt | 20 hours ago | |
mailserver/system | 3 months ago | |
nextcloud | 3 months ago | |
passmgr | 3 weeks ago | |
resources | 2 years ago | |
social | 9 months ago | |
userdata | 11 months ago | |
videomeet | 1 year ago | |
vpn | 1 year ago | |
webserver | 9 months ago | |
.gitignore | 1 year ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
configuration.nix | 3 months ago | |
files.nix | 20 hours ago | |
users.nix | 11 months ago | |
variables-module.nix | 3 months ago | |
variables.nix | 3 months ago | |
volumes.nix | 9 months ago |
README.md
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:
{
"backblaze": {
"accountId": "BACKBLAZE_KEY_ID",
"accountKey": "BACKBLAZE_ACCOUNT_KEY",
"bucket": "BACKBLAZE_BUCKET_NAME"
},
"api": {
"token": "API_TOKEN",
"enableSwagger": false
},
"bitwarden": {
"enable": true
},
"cloudflare": {
"apiKey": "CF_TOKEN"
},
"databasePassword": "DB_PASSWORD",
"domain": "DOMAIN",
"hashedMasterPassword": "HASHED_PASSWORD",
"hostname": "DOMAIN",
"nextcloud": {
"enable": true,
"adminPassword": "PASSWORD",
"databasePassword": "PASSWORD"
},
"gitea": {
"enable": true
},
"jitsi": {
"enable": true
},
"ocserv": {
"enable": true
},
"pleroma": {
"enable": true
},
"timezone": "Europe/Moscow",
"resticPassword": "PASSWORD",
"ssh": {
"enable": true,
"rootSshKeys": [
"ssh-ed25519 KEY user@host"
],
"passwordAuthentication": true
},
"username": "LUSER",
"users": [
{
"hashedPassword": "OTHER_USER_HASHED_PASSWORD",
"username": "OTHER_USER"
}
]
}