Immutable NixOS config
 
 
Go to file
Inex Code 88b0290eb4 Switch repo to master 2022-08-25 23:33:36 +04:00
api add task registry 2022-08-13 04:01:01 +04:00
backup Move secrets out of Nix Store (#19) 2022-07-19 15:18:46 +03:00
git add lib import 2022-08-20 18:54:47 +04:00
letsencrypt roll back the roll back 2022-02-16 11:06:51 +03:00
mailserver/system Add support for bind mounts 2022-08-20 18:52:53 +04:00
nextcloud Add support for bind mounts 2022-08-20 18:52:53 +04:00
passmgr add lib import 2022-08-20 18:54:47 +04:00
resources Initial commit 2021-11-15 13:02:05 +03:00
social add lib import 2022-08-20 18:54:47 +04:00
userdata Move secrets out of Nix Store (#19) 2022-07-19 15:18:46 +03:00
videomeet roll back the roll back 2022-02-16 11:06:51 +03:00
vpn Add groups to users 2022-04-20 13:22:16 +03:00
webserver Proxy websockets to API. 2022-08-12 22:14:28 +04:00
.gitignore Add tokens.json to gitignore 2022-04-29 16:40:59 +03:00
LICENSE Изменил(а) на 'LICENSE' 2021-11-18 10:08:19 +02:00
README.md Update README 2021-11-16 19:22:36 +03:00
configuration.nix Switch repo to master 2022-08-25 23:33:36 +04:00
files.nix Move secrets out of Nix Store (#19) 2022-07-19 15:18:46 +03:00
users.nix Move secrets out of Nix Store (#19) 2022-07-19 15:18:46 +03:00
variables-module.nix Add email to variables 2022-08-20 19:01:59 +04:00
variables.nix Add support for bind mounts 2022-08-20 18:52:53 +04:00
volumes.nix Fix volumes 2022-08-01 22:32:54 +03:00

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"
        }
    ]
}