Skip to content

Commit 0875bd0

Browse files
committed
Update Devcontainers example
1 parent 2b4a862 commit 0875bd0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

development-environments/devcontainers/.devcontainer/devcontainer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
"image": "mcr.microsoft.com/devcontainers/java",
44

55
"features": {
6-
"ghcr.io/thomasvitale/devcontainers-features/flox:1": {},
6+
// "ghcr.io/thomasvitale/devcontainers-features/flox:1": {},
7+
"ghcr.io/devcontainers/features/nix:1": {},
78
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
89
},
910

10-
"postCreateCommand": "flox activate",
11+
//"postCreateCommand": "flox activate",
12+
"postCreateCommand": ".devcontainer/install-flox.sh && flox activate",
1113

1214
"customizations": {
1315
"vscode": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
nix profile install \
4+
--experimental-features "nix-command flakes" \
5+
--accept-flake-config \
6+
'github:flox/flox'

0 commit comments

Comments
 (0)