diff --git a/userdata/schema.json b/userdata/schema.json deleted file mode 100644 index 778f5e0..0000000 --- a/userdata/schema.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "$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" - ] -} \ No newline at end of file diff --git a/userdata/tokens_schema.json b/userdata/tokens_schema.json deleted file mode 100644 index 2e85065..0000000 --- a/userdata/tokens_schema.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "$schema": "http://json-schema.org/schema#", - "$id": "https://git.selfprivacy.org/inex/selfprivacy-nixos-config/raw/branch/master/userdata/tokens_schema.json", - "type": "object", - "properties": { - "tokens": { - "type": "array", - "items": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "name": { - "type": "string" - }, - "date": { - "type": "string" - } - }, - "required": [ - "token", - "name", - "date" - ] - } - }, - "recovery_token": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "date": { - "type": "string" - }, - "expiration": { - "type": "string" - }, - "uses_left": { - "type": "integer" - } - }, - "required": [ - "token", - "date" - ] - }, - "new_device": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "date": { - "type": "string" - }, - "expiration": { - "type": "string" - } - }, - "required": [ - "token", - "date", - "expiration" - ] - } - }, - "required": [ - "tokens" - ] -} \ No newline at end of file