Skip to content

Commit 556fe88

Browse files
Merge pull request #18 from qqii/main
Update `README.md`
2 parents cca845b + ab1900a commit 556fe88

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

README.md

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,19 @@ Example `.devcontainer/devcontainer.json`:
146146
"onCreateCommand": "nix-shell --command 'echo done building nix dev environment'",
147147

148148
// Add the IDs of extensions you want installed when the container is created.
149-
"extensions": [
150-
// select nix environment
151-
"arrterian.nix-env-selector",
152-
153-
// extra extensions
154-
//"fsevenm.run-it-on",
155-
//"jnoortheen.nix-ide",
156-
//"ms-python.python"
157-
],
149+
"customizations": {
150+
"vscode": {
151+
"extensions": [
152+
// select nix environment
153+
"arrterian.nix-env-selector",
154+
155+
// extra extensions
156+
//"fsevenm.run-it-on",
157+
//"jnoortheen.nix-ide",
158+
//"ms-python.python"
159+
]
160+
}
161+
},
158162

159163
// Use 'forwardPorts' to make a list of ports inside the container available locally.
160164
"forwardPorts": [],
@@ -168,6 +172,9 @@ Example `.devcontainer/Dockerfile`:
168172

169173
```dockerfile
170174
FROM ghcr.io/xtruder/nix-devcontainer:v1
175+
176+
# cache /nix
177+
VOLUME /nix
171178
```
172179

173180
**Dockerfile is needed for build triggers to run.** Build triggers will change
@@ -212,15 +219,19 @@ Example `.devcontainer/devcontainer.json`:
212219
"onCreateCommand": "nix-shell --command 'echo done building nix dev environment'",
213220

214221
// Add the IDs of extensions you want installed when the container is created.
215-
"extensions": [
216-
// select nix environment
217-
"arrterian.nix-env-selector",
218-
219-
// extra extensions
220-
//"fsevenm.run-it-on",
221-
//"jnoortheen.nix-ide",
222-
//"ms-python.python"
223-
],
222+
"customizations": {
223+
"vscode": {
224+
"extensions": [
225+
// select nix environment
226+
"arrterian.nix-env-selector",
227+
228+
// extra extensions
229+
//"fsevenm.run-it-on",
230+
//"jnoortheen.nix-ide",
231+
//"ms-python.python"
232+
]
233+
}
234+
},
224235
}
225236
```
226237

0 commit comments

Comments
 (0)