Иммутабельный конфиг NixOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Inex Code a71fd79588 Allow ssh-rsa keys for now, as mobile app generates them 2 weeks ago
api Move sp-api to nix overlay 2 weeks ago
backup Initial commit 2 weeks ago
git Initial commit 2 weeks ago
letsencrypt Fix errors caused by temp files creation 2 weeks ago
mailserver/system It builds! 2 weeks ago
nextcloud Fix errors caused by temp files creation 2 weeks ago
passmgr Fix errors caused by temp files creation 2 weeks ago
resources Initial commit 2 weeks ago
social Hotfix pleroma config 2 weeks ago
userdata Add Swagger to API package 2 weeks ago
videomeet Initial commit 2 weeks ago
vpn Initial commit 2 weeks ago
webserver Initial commit 2 weeks ago
.gitignore Initial commit 2 weeks ago
LICENSE Изменил(а) на 'LICENSE' 2 weeks ago
README.md Update README 2 weeks ago
configuration.nix Allow ssh-rsa keys for now, as mobile app generates them 2 weeks ago
files.nix Fix errors caused by temp files creation 2 weeks ago
users.nix It builds! 2 weeks ago
variables-module.nix Fix not being able to create a server without trusted keys 2 weeks ago
variables.nix It builds! 2 weeks 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"
        }
    ]
}