Иммутабельный конфиг NixOS
Go to file
2021-11-16 17:14:41 +02:00
api Add Swagger to API package 2021-11-16 17:08:58 +03:00
backup Initial commit 2021-11-15 13:02:05 +03:00
git Initial commit 2021-11-15 13:02:05 +03:00
letsencrypt Initial commit 2021-11-15 13:02:05 +03:00
mailserver/system It builds! 2021-11-15 13:29:20 +03:00
nextcloud Bump nextcloud 2021-11-15 13:32:52 +03:00
passmgr Initial commit 2021-11-15 13:02:05 +03:00
resources Initial commit 2021-11-15 13:02:05 +03:00
social It builds! 2021-11-15 13:29:20 +03:00
userdata Add Swagger to API package 2021-11-16 17:08:58 +03:00
videomeet Initial commit 2021-11-15 13:02:05 +03:00
vpn Initial commit 2021-11-15 13:02:05 +03:00
webserver Initial commit 2021-11-15 13:02:05 +03:00
.gitignore Initial commit 2021-11-15 13:02:05 +03:00
configuration.nix Add more SSH settings 2021-11-15 16:35:04 +03:00
files.nix Fixed restic credentials path 2021-11-16 17:14:41 +02:00
README.md Fix LUSER in readme 2021-11-15 17:12:34 +02:00
users.nix It builds! 2021-11-15 13:29:20 +03:00
variables-module.nix Add Swagger to API package 2021-11-16 17:08:58 +03:00
variables.nix It builds! 2021-11-15 13:29:20 +03: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:

{
    "backblaze": {
        "accountId": "BACKBLAZE_KEY_ID",
        "accountKey": "BACKBLAZE_ACCOUNT_KEY",
        "bucket": "BACKBLAZE_BUCKET_NAME"
    },
    "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"
        }
    ]
}