aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/devcontainer.json
blob: a806d902f1a86cac1274e01e69a6dd7f133984b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
	"name": "MeshCore",
	"image": "mcr.microsoft.com/devcontainers/python:3-bookworm",
	"features": {
		"ghcr.io/devcontainers-extra/features/bun:1": {},
		"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
			"packages": [
				"sudo"
			]
		}
	},
	"runArgs": [
		"--privileged",
		"--network=host",
		"--device=/dev/bus/usb",
		// arch linux tty* is owned by uucp (986)
		"--group-add=986",
		// debian tty* is owned by dialout (20)
		"--group-add=20"
	],
	"postCreateCommand": {
		"platformio": "pipx install platformio",
		"opencode": "curl -fsSL https://opencode.ai/install | bash"
	},
	"customizations": {
		"vscode": {
			"settings": {
				"platformio-ide.disablePIOHomeStartup": true,
				"editor.formatOnSave": false,
				"workbench.colorCustomizations": {
					"titleBar.activeBackground": "#0d1a2b",
					"titleBar.activeForeground": "#ffffff",
					"titleBar.inactiveBackground": "#0d1a2b99",
					"titleBar.inactiveForeground": "#ffffff99"
				}
			},
			"extensions": [
				"platformio.platformio-ide",
				"github.vscode-github-actions",
				"GitHub.vscode-pull-request-github"
			],
			"unwantedRecommendations": [
				"ms-vscode.cpptools-extension-pack"
			]
		}
	}
}