Иммутабельный конфиг 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.
 
 
Go to file
Inex Code d8f0922b8a
fix(gitea): incorrect root URL
1 month ago
api fix: one more path to backups data 3 months ago
backup fix: path to backup backet 3 months ago
git fix(gitea): incorrect root URL 1 month ago
letsencrypt feat: add dns.useStagingACME option 3 months ago
mailserver/system chore(mailserver): Update the simple-nixos-mailserver to the 22.05 version 4 months ago
nextcloud chore(nextcloud): Upgrade Nextcloud to v24 2 months ago
passmgr Switched to binds, volume management, new API 6 months ago
resources Initial commit 1 year ago
social Switched to binds, volume management, new API 6 months ago
userdata Move secrets out of Nix Store (#19) 7 months ago
videomeet roll back the roll back 12 months ago
vpn Add groups to users 10 months ago
webserver Switched to binds, volume management, new API 6 months ago
.gitignore Add tokens.json to gitignore 9 months ago
LICENSE Изменил(а) на 'LICENSE' 1 year ago
README.md Update README 1 year ago
configuration.nix chore: Switch to API 2.1.0 1 month ago
files.nix feat(userdata): Support for newer JSON schema of provider 3 months ago
users.nix Move secrets out of Nix Store (#19) 7 months ago
variables-module.nix feat: add dns.useStagingACME option 3 months ago
variables.nix feat: add dns.useStagingACME option 3 months ago
volumes.nix Switched to binds, volume management, new API 6 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"
        }
    ]
}