Immutable NixOS config
You cannot 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 8d99d1c78a fix: Make bitwarden read the env file 3 weeks ago
api fix(api): Python version 3 months ago
backup fix: path to backup backet 7 months ago
git revert(gitea): Nix deprecations x2 2 months ago
letsencrypt feat: add dns.useStagingACME option 7 months ago
mailserver/system chore(mailserver): Bump Mailserver to 22.11 release 3 months ago
nextcloud chore(nextcloud): Upgrade Nextcloud to v25 3 months ago
passmgr fix: Make bitwarden read the env file 3 weeks ago
resources Initial commit 2 years ago
social Switched to binds, volume management, new API 9 months ago
userdata Move secrets out of Nix Store (#19) 11 months ago
videomeet roll back the roll back 1 year ago
vpn Add groups to users 1 year ago
webserver Switched to binds, volume management, new API 9 months ago
.gitignore Add tokens.json to gitignore 1 year ago
LICENSE Изменил(а) на 'LICENSE' 2 years ago
README.md Update README 2 years ago
configuration.nix feat: Add state version 3 months ago
files.nix feat(bitwarden): Add admin token support 1 month ago
users.nix Move secrets out of Nix Store (#19) 11 months ago
variables-module.nix fix: State Version type 3 months ago
variables.nix feat: Add state version 3 months ago
volumes.nix Switched to binds, volume management, new API 9 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"
        }
    ]
}