Files
mesh-catalog/modules/zsh/module.json
T

160 lines
3.4 KiB
JSON

{
"module": "zsh",
"version": "1",
"moved": true,
"capabilities": [
"package-manager"
],
"claims": [
{
"name": "node-login-shell",
"scope": "node",
"serves": [
"execute"
]
}
],
"tools": [
"zsh_config"
],
"config": {
"execute": {
"type": "string",
"description": "Whether this machine offers execute, which runs any command as the operator account and so can become root without a person: serve, or withhold on a machine that does not offer it (novox/hq ADR 0268), such as the control-node until a call to it needs a person's approval.",
"enum": [
"serve",
"withhold"
],
"trusted": true,
"default": "serve"
}
},
"items": [
{
"collection": "environment",
"name": "editor",
"attributes": {
"kind": "variable",
"name": "EDITOR"
},
"template": "files/env-editor"
},
{
"collection": "environment",
"name": "visual",
"attributes": {
"kind": "variable",
"name": "VISUAL"
},
"template": "files/env-visual"
},
{
"collection": "environment",
"name": "xdg-config-home",
"attributes": {
"kind": "variable",
"name": "XDG_CONFIG_HOME"
},
"template": "files/env-xdg-config-home"
},
{
"collection": "environment",
"name": "path-local-bin",
"attributes": {
"kind": "path",
"at": "start",
"order": "10"
},
"template": "files/env-path-local-bin"
},
{
"collection": "environment",
"name": "path-scripts",
"attributes": {
"kind": "path",
"at": "start",
"order": "20"
},
"template": "files/env-path-scripts"
},
{
"collection": "environment",
"name": "path-scripts-bin",
"attributes": {
"kind": "path",
"at": "start",
"order": "30"
},
"template": "files/env-path-scripts-bin"
}
],
"resources": [
{
"id": "package",
"type": "package",
"package": "zsh"
},
{
"id": "env",
"type": "file",
"path": "${machine:account-home}/.zshenv",
"owner": "${machine:account}",
"mode": "0644",
"into": "block",
"at": "start",
"template": "files/zshenv"
},
{
"id": "rc",
"type": "file",
"path": "${machine:account-home}/.zshrc",
"owner": "${machine:account}",
"mode": "0644",
"into": "block",
"at": "start",
"template": "files/zshrc"
},
{
"id": "login",
"type": "user",
"name": "${machine:account}",
"shell": "/usr/bin/zsh"
},
{
"id": "state",
"type": "directory",
"place": ".",
"owner": "root",
"mode": "0755"
},
{
"id": "tools-conf",
"type": "file",
"path": "${dir:state}/tools.conf",
"owner": "root",
"mode": "0644",
"template": "files/tools.conf"
}
],
"build": {
"artifacts": [
{
"name": "tools",
"kind": "bundle",
"language": "typescript",
"entrypoints": [
"tools/index.js"
],
"env": {
"ZSH_TOOLS_CONF": "${dir:state}/tools.conf"
}
},
{
"name": "files",
"kind": "archive",
"from": "files"
}
]
}
}