Иммутабельный конфиг 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 7c2264ff89 Fix errors caused by temp files creation 10 months ago
api Provide backup env vars to api 11 months ago
backup Initial commit 11 months ago
git Initial commit 11 months ago
letsencrypt Fix errors caused by temp files creation 10 months ago
mailserver/system It builds! 11 months ago
nextcloud Fix errors caused by temp files creation 10 months ago
passmgr Fix errors caused by temp files creation 10 months ago
resources Initial commit 11 months ago
social It builds! 11 months ago
userdata Add Swagger to API package 11 months ago
videomeet Initial commit 11 months ago
vpn Initial commit 11 months ago
webserver Initial commit 11 months ago
.gitignore Initial commit 11 months ago
README.md Update README 11 months ago
configuration.nix Add more SSH settings 11 months ago
files.nix Fix errors caused by temp files creation 10 months ago
users.nix It builds! 11 months ago
variables-module.nix Add Swagger to API package 11 months ago
variables.nix It builds! 11 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"
        }
    ]
}