2021-11-15 10:02:05 +00:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/schema#",
|
|
|
|
"$id": "https://git.selfprivacy.org/inex/selfprivacy-nixos-config/raw/branch/master/userdata/schema.json",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2021-11-22 16:53:43 +00:00
|
|
|
"autoUpgrade": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"allowReboot": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-11-15 10:02:05 +00:00
|
|
|
"hostname": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"domain": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"username": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"hashedMasterPassword": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2021-11-22 16:53:43 +00:00
|
|
|
"sshKeys": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2021-11-15 10:29:20 +00:00
|
|
|
"timezone": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2021-11-16 10:28:16 +00:00
|
|
|
"api": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"token": {
|
|
|
|
"type": "string"
|
2021-11-16 14:08:58 +00:00
|
|
|
},
|
|
|
|
"enableSwagger": {
|
|
|
|
"type": "boolean"
|
2022-01-14 00:43:26 +00:00
|
|
|
},
|
|
|
|
"skippedMigrations": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2021-11-16 10:28:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-11-15 10:02:05 +00:00
|
|
|
"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"
|
|
|
|
},
|
2021-11-15 13:35:04 +00:00
|
|
|
"ssh": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"rootKeys": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"passwordAuthentication": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
2021-11-15 10:02:05 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|