feat: Start config schema
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"requires": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^([a-zA-Z0-9.-_]+\/)+",
|
||||
"description": "Path to other configs, relative to this file (e.g. config/pkgs.yaml will expand to dirname(this_file)/config/pkgs.yaml)"
|
||||
},
|
||||
"description": "Imports for other config files that will be merged into this one. Precedence order is bottom up (i.e. lowest has highest precedence)"
|
||||
},
|
||||
"pkgs": {
|
||||
"type": "object",
|
||||
"description": "The packages to be installed",
|
||||
"properties": {
|
||||
"individual": {
|
||||
"type:": "array",
|
||||
"description": "the packages to be installed, by their package name",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"presets": {
|
||||
"type": "array",
|
||||
"maxItems": 1,
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"type": "array",
|
||||
"properties": {}
|
||||
},
|
||||
"boot": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"themes": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"git": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
},
|
||||
"template_data": {
|
||||
"type": "array",
|
||||
"items": {}
|
||||
},
|
||||
"cmds": {
|
||||
"type": "array",
|
||||
"description": "Commands to run on first install",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"required": [
|
||||
"pkgs",
|
||||
"boot"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user