106 lines
2.1 KiB
JSON
106 lines
2.1 KiB
JSON
{
|
|
"module": "desk-channel",
|
|
"version": "1",
|
|
"slug": "desk",
|
|
"runs-as": "desk-channel",
|
|
"claims": [
|
|
{
|
|
"name": "channel",
|
|
"scope": "mesh",
|
|
"kind": "desktop",
|
|
"capabilities": [
|
|
"deliver",
|
|
"silent",
|
|
"loud",
|
|
"edit",
|
|
"private",
|
|
"choice",
|
|
"exact-render"
|
|
]
|
|
},
|
|
{
|
|
"name": "intake",
|
|
"scope": "mesh",
|
|
"kind": "desktop"
|
|
}
|
|
],
|
|
"consumes": [
|
|
"dunst.action-chosen",
|
|
"dunst.started",
|
|
"dunst.paused"
|
|
],
|
|
"invokes": [
|
|
"seat:node-notifier.send"
|
|
],
|
|
"state": [
|
|
{
|
|
"name": "shown",
|
|
"ttl-seconds": 2592000
|
|
}
|
|
],
|
|
"own-secrets": {
|
|
"broker": "${dir:state}/broker"
|
|
},
|
|
"secrets-owner": "desk-channel",
|
|
"tools": [
|
|
"desk_channel_status"
|
|
],
|
|
"config": {
|
|
"desktop-machines": {
|
|
"type": "list",
|
|
"description": "The machines, by node name, whose desktop shows the operator's questions and notifications, in the order they are tried; empty shows them on none.",
|
|
"trusted": true,
|
|
"default": []
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "account",
|
|
"type": "user",
|
|
"name": "desk-channel",
|
|
"shell": "/usr/bin/nologin",
|
|
"home": "/var/lib/desk-channel"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "desk-channel",
|
|
"place": "."
|
|
},
|
|
{
|
|
"id": "settings",
|
|
"type": "file",
|
|
"path": "${dir:state}/settings.json",
|
|
"mode": "0600",
|
|
"owner": "desk-channel",
|
|
"takes-config": ["desktop-machines"],
|
|
"merge": "json",
|
|
"template": "files/settings.json"
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "tools",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/desk-channel",
|
|
"binary": "desk-channel",
|
|
"loads": [
|
|
"desk-channel"
|
|
],
|
|
"env": {
|
|
"MESH_DESK_SETTINGS": "${dir:state}/settings.json"
|
|
}
|
|
},
|
|
{
|
|
"name": "files",
|
|
"kind": "archive",
|
|
"from": "files"
|
|
}
|
|
]
|
|
}
|
|
}
|