Skip to content

Commit e9c5977

Browse files
.devcontainer: tweaks
1 parent 52a4644 commit e9c5977

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.devcontainer/devcontainer.json

+16-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,22 @@
33
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
44
"features": {
55
"ghcr.io/devcontainers/features/nix:1": {
6-
"multiUser": false
6+
// fails in the devcontainer sandbox, enable sandbox via config instead
7+
"multiUser": false,
8+
"packages": "nixd,nixfmt-unstable",
9+
"extraNixConfig": "experimental-features = nix-command flakes,sandbox = true"
10+
}
11+
},
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"jnoortheen.nix-ide"
16+
],
17+
"settings": {
18+
"nix.formatterPath": "nixfmt-rfc-style",
19+
"nix.enableLanguageServer": true,
20+
"nix.serverPath": "nixd"
21+
}
722
}
823
},
924
"remoteEnv": {

0 commit comments

Comments
 (0)