2023-08-15 13:48:17 +00:00
|
|
|
{
|
|
|
|
"age": {
|
|
|
|
"declarations": [
|
|
|
|
"/home/grmpf/synced/projects/clan/clan-core/lib/jsonschema/example-interface.nix"
|
|
|
|
],
|
|
|
|
"default": {
|
|
|
|
"_type": "literalExpression",
|
|
|
|
"text": "42"
|
|
|
|
},
|
|
|
|
"description": "The age of the user",
|
2023-08-24 12:12:17 +00:00
|
|
|
"loc": ["age"],
|
2023-08-15 13:48:17 +00:00
|
|
|
"readOnly": false,
|
|
|
|
"type": "signed integer"
|
|
|
|
},
|
|
|
|
"isAdmin": {
|
|
|
|
"declarations": [
|
|
|
|
"/home/grmpf/synced/projects/clan/clan-core/lib/jsonschema/example-interface.nix"
|
|
|
|
],
|
|
|
|
"default": {
|
|
|
|
"_type": "literalExpression",
|
|
|
|
"text": "false"
|
|
|
|
},
|
|
|
|
"description": "Is the user an admin?",
|
2023-08-24 12:12:17 +00:00
|
|
|
"loc": ["isAdmin"],
|
2023-08-15 13:48:17 +00:00
|
|
|
"readOnly": false,
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"kernelModules": {
|
|
|
|
"declarations": [
|
|
|
|
"/home/grmpf/synced/projects/clan/clan-core/lib/jsonschema/example-interface.nix"
|
|
|
|
],
|
|
|
|
"default": {
|
|
|
|
"_type": "literalExpression",
|
|
|
|
"text": "[\n \"nvme\"\n \"xhci_pci\"\n \"ahci\"\n]"
|
|
|
|
},
|
|
|
|
"description": "A list of enabled kernel modules",
|
2023-08-24 12:12:17 +00:00
|
|
|
"loc": ["kernelModules"],
|
2023-08-15 13:48:17 +00:00
|
|
|
"readOnly": false,
|
|
|
|
"type": "list of string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"declarations": [
|
|
|
|
"/home/grmpf/synced/projects/clan/clan-core/lib/jsonschema/example-interface.nix"
|
|
|
|
],
|
|
|
|
"default": {
|
|
|
|
"_type": "literalExpression",
|
|
|
|
"text": "\"John Doe\""
|
|
|
|
},
|
|
|
|
"description": "The name of the user",
|
2023-08-24 12:12:17 +00:00
|
|
|
"loc": ["name"],
|
2023-08-15 13:48:17 +00:00
|
|
|
"readOnly": false,
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"services": {
|
|
|
|
"declarations": [
|
|
|
|
"/home/grmpf/synced/projects/clan/clan-core/lib/jsonschema/example-interface.nix"
|
|
|
|
],
|
|
|
|
"description": null,
|
2023-08-24 12:12:17 +00:00
|
|
|
"loc": ["services"],
|
2023-08-15 13:48:17 +00:00
|
|
|
"readOnly": false,
|
|
|
|
"type": "submodule"
|
|
|
|
},
|
|
|
|
"services.opt": {
|
|
|
|
"declarations": [
|
|
|
|
"/home/grmpf/synced/projects/clan/clan-core/lib/jsonschema/example-interface.nix"
|
|
|
|
],
|
|
|
|
"default": {
|
|
|
|
"_type": "literalExpression",
|
|
|
|
"text": "\"foo\""
|
|
|
|
},
|
|
|
|
"description": "A submodule option",
|
2023-08-24 12:12:17 +00:00
|
|
|
"loc": ["services", "opt"],
|
2023-08-15 13:48:17 +00:00
|
|
|
"readOnly": false,
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"userIds": {
|
|
|
|
"declarations": [
|
|
|
|
"/home/grmpf/synced/projects/clan/clan-core/lib/jsonschema/example-interface.nix"
|
|
|
|
],
|
|
|
|
"default": {
|
|
|
|
"_type": "literalExpression",
|
|
|
|
"text": "{\n albrecht = 3;\n horst = 1;\n peter = 2;\n}"
|
|
|
|
},
|
|
|
|
"description": "Some attributes",
|
2023-08-24 12:12:17 +00:00
|
|
|
"loc": ["userIds"],
|
2023-08-15 13:48:17 +00:00
|
|
|
"readOnly": false,
|
|
|
|
"type": "attribute set of signed integer"
|
|
|
|
}
|
|
|
|
}
|