Иммутабельный конфиг NixOS
Go to file
2022-07-13 18:12:34 +03:00
api Prevent sending SIGKILL to rebuild service 2022-04-29 15:48:08 +03:00
backup Add groups to users 2022-04-20 13:22:16 +03:00
git Initial commit 2021-11-15 13:02:05 +03:00
letsencrypt roll back the roll back 2022-02-16 11:06:51 +03:00
mailserver/system Remove alps from server configurtaion 2022-06-24 18:51:29 +03:00
nextcloud Overwrite nextcloud protocol to https 2021-12-06 21:37:45 +03:00
passmgr Fix errors caused by temp files creation 2021-11-17 11:54:36 +03:00
resources Initial commit 2021-11-15 13:02:05 +03:00
social Remove pleroma package definition 2022-07-13 13:08:52 +03:00
userdata Add ability to skip migrations in API 2022-01-14 03:43:26 +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 roll back the roll back 2022-02-16 11:06:51 +03:00
.gitignore Add tokens.json to gitignore 2022-04-29 16:40:59 +03:00
configuration.nix Move from tmpfiles.d to init scripts. 2022-07-13 18:06:16 +03:00
files.nix Try gnused 2022-07-13 18:12:34 +03:00
LICENSE Изменил(а) на 'LICENSE' 2021-11-18 10:08:19 +02:00
README.md Update README 2021-11-16 19:22:36 +03:00
users.nix Linting 2022-07-13 14:47:13 +03:00
variables-module.nix Change the way we read values from userdata 2022-07-13 14:18:43 +03:00
variables.nix Use lib.attrsets.attrByPath 2022-07-13 15:57:03 +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"
    },
    "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"
        }
    ]
}