|
| 1 | +{ |
| 2 | + "customizations": { |
| 3 | + "vscode": { |
| 4 | + "settings": { |
| 5 | + "terminal.integrated.defaultProfile.linux": "bash" |
| 6 | + }, |
| 7 | + "extensions": [ |
| 8 | + "mkhl.direnv", |
| 9 | + "github.vscode-github-actions", |
| 10 | + "grafana.vscode-jsonnet", |
| 11 | + "ms-vscode.makefile-tools", |
| 12 | + "vivaxy.vscode-conventional-commits" |
| 13 | + ] |
| 14 | + } |
| 15 | + }, |
| 16 | + "image": "mcr.microsoft.com/devcontainers/base:bookworm", |
| 17 | + "features": { |
| 18 | + "ghcr.io/devcontainers/features/nix:1": { |
| 19 | + "version": "latest", |
| 20 | + "packages": "cachix,direnv,devenv", |
| 21 | + "extraNixConfig": [ |
| 22 | + "experimental-features = nix-command flakes", |
| 23 | + // Uncomment below to speed up container building in China |
| 24 | + // "substituters = https://mirrors.ustc.edu.cn/nix-channels/store https://devenv.cachix.org https://cache.nixos.org", |
| 25 | + "trusted-users = root vscode" |
| 26 | + ] |
| 27 | + } |
| 28 | + }, |
| 29 | + "mounts": [ |
| 30 | + { |
| 31 | + "source": "${localWorkspaceFolder}/.devcontainer/.devenv", |
| 32 | + "target": "${containerWorkspaceFolder}/.devenv", |
| 33 | + "type": "bind" |
| 34 | + }, |
| 35 | + { |
| 36 | + "source": "${localWorkspaceFolder}/.devcontainer/.direnv", |
| 37 | + "target": "${containerWorkspaceFolder}/.direnv", |
| 38 | + "type": "bind" |
| 39 | + } |
| 40 | + ], |
| 41 | + "workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind,consistency=cached", |
| 42 | + "runArgs": [ |
| 43 | + // https://github.com/moby/moby/issues/27195#issuecomment-1410745778 |
| 44 | + "--ulimit", "nofile=1024:524288" |
| 45 | + ], |
| 46 | + "overrideCommand": true, |
| 47 | + "updateContentCommand": "make devcontainer_setup" |
| 48 | +} |
0 commit comments