Иммутабельный конфиг 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 6c07cc024b
fix: permissions for vaultwarden backups were too broad
1 month ago
api feat: update API deps 2 months ago
git revert(gitea): Nix deprecations x2 7 months ago
letsencrypt fix(acme): add dns propagation check exceptions 2 months ago
mailserver/system chore(mailserver): Bump Mailserver to 22.11 release 7 months ago
nextcloud chore(nextcloud): Upgrade Nextcloud to v25 7 months ago
passmgr fix: Make bitwarden read the env file 5 months ago
resources Initial commit 2 years ago
social Switched to binds, volume management, new API 1 year ago
userdata Move secrets out of Nix Store (#19) 1 year ago
videomeet roll back the roll back 2 years ago
vpn Add groups to users 1 year ago
webserver fix: acme retrieval 2 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 refactor: remove unused restic-related code 2 months ago
files.nix fix: permissions for vaultwarden backups were too broad 1 month ago
users.nix Move secrets out of Nix Store (#19) 1 year ago
variables-module.nix feat: update API deps 2 months ago
variables.nix feat: update API deps 2 months ago
volumes.nix Switched to binds, volume management, new API 1 year 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"
        }
    ]
}