Иммутабельный конфиг 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 53c9655b7b Switched to binds, volume management, new API 1 month ago
api Switched to binds, volume management, new API 1 month ago
backup Move secrets out of Nix Store (#19) 2 months ago
git Switched to binds, volume management, new API 1 month ago
letsencrypt roll back the roll back 7 months ago
mailserver/system Switched to binds, volume management, new API 1 month ago
nextcloud Switched to binds, volume management, new API 1 month ago
passmgr Switched to binds, volume management, new API 1 month ago
resources Initial commit 11 months ago
social Switched to binds, volume management, new API 1 month ago
userdata Move secrets out of Nix Store (#19) 2 months ago
videomeet roll back the roll back 7 months ago
vpn Add groups to users 5 months ago
webserver Switched to binds, volume management, new API 1 month ago
.gitignore Add tokens.json to gitignore 5 months ago
LICENSE Изменил(а) на 'LICENSE' 10 months ago
README.md Update README 11 months ago
configuration.nix Switched to binds, volume management, new API 1 month ago
files.nix Fix Nextcloud initialization 2 months ago
users.nix Move secrets out of Nix Store (#19) 2 months ago
variables-module.nix Switched to binds, volume management, new API 1 month ago
variables.nix Switched to binds, volume management, new API 1 month ago
volumes.nix Switched to binds, volume management, new API 1 month 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"
        }
    ]
}