1 // @lint-ignore-every JSONSYNTAX because the format of this file is JSONC, not strict JSON
2 // For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
3 // https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-existing-dockerfile
5 "name": "devcontainer-project",
6 "dockerFile": "Dockerfile",
7 "context": "${localWorkspaceFolder}",
10 "USER_UID": "${localEnv:USER_UID}",
11 "USER_GID": "${localEnv:USER_GID}"
15 // run arguments passed to docker
17 "--security-opt", "label=disable"
21 // extensions to preload before other extensions
22 "PRELOAD_EXTENSIONS": "arrterian.nix-env-selector"
25 // disable command overriding and updating remote user ID
26 "overrideCommand": false,
27 "userEnvProbe": "loginShell",
28 "updateRemoteUserUID": false,
30 // build development environment on creation, make sure you already have shell.nix
31 // "onCreateCommand": "nix-shell --command 'echo done building nix dev environment'",
33 "updateContentCommand": "git submodule update --init && nix-shell --command 'echo done building nix dev environment'",
35 // Add the IDs of extensions you want installed when the container is created.postCreateCommand
37 // select nix environment
38 "arrterian.nix-env-selector",
41 //"fsevenm.run-it-on",
42 //"jnoortheen.nix-ide",
46 // Use 'forwardPorts' to make a list of ports inside the container available locally.
49 // Use 'postCreateCommand' to run commands after the container is created.
50 // "postCreateCommand": "go version",