mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-22 11:41:26 +00:00
190 lines
4.8 KiB
JSON
190 lines
4.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/schema#",
|
|
"$id": "https://git.selfprivacy.org/inex/selfprivacy-nixos-config/raw/branch/master/userdata/schema.json",
|
|
"type": "object",
|
|
"properties": {
|
|
"autoUpgrade": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"allowReboot": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"hostname": {
|
|
"type": "string"
|
|
},
|
|
"domain": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"hashedMasterPassword": {
|
|
"type": "string"
|
|
},
|
|
"sshKeys": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"timezone": {
|
|
"type": "string"
|
|
},
|
|
"api": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"enableSwagger": {
|
|
"type": "boolean"
|
|
},
|
|
"skippedMigrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"backblaze": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bucket": {
|
|
"type": "string"
|
|
},
|
|
"accountId": {
|
|
"type": "string"
|
|
},
|
|
"accountKey": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["bucket", "accountId", "accountKey"]
|
|
},
|
|
"cloudflare": {
|
|
"type": "object",
|
|
"properties": {
|
|
"apiKey": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["apiKey"]
|
|
},
|
|
"databasePassword": {
|
|
"type": "string"
|
|
},
|
|
"bitwarden": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"gitea": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"nextcloud": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"databasePassword": {
|
|
"type": "string"
|
|
},
|
|
"adminPassword": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["databasePassword", "adminPassword"]
|
|
},
|
|
"pleroma": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"jitsi": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"ocserv": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"resticPassword": {
|
|
"type": "string"
|
|
},
|
|
"ssh": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"rootKeys": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"passwordAuthentication": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"users": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"hashedPassword": {
|
|
"type": "string"
|
|
},
|
|
"sshKeys": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": ["username", "hashedPassword"]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"hostname",
|
|
"domain",
|
|
"username",
|
|
"hashedMasterPassword",
|
|
"backblaze",
|
|
"cloudflare",
|
|
"databasePassword",
|
|
"nextcloud",
|
|
"resticPassword"
|
|
]
|
|
} |