Skip to content

Commit

Permalink
updated to match PR xtruder#18
Browse files Browse the repository at this point in the history
  • Loading branch information
djsnipa1 authored Dec 9, 2023
1 parent ab1900a commit 1c40f2e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
27 changes: 12 additions & 15 deletions .devcontainer/codespaces/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,28 @@
"name": "devcontainer-codespaces",
"dockerFile": "${localWorkspaceFolder}/src/Dockerfile",
"context": "${localWorkspaceFolder}/src",

// run arguments passed to docker
"runArgs": [
"--security-opt", "label=disable"
"--security-opt",
"label=disable"
],

"containerEnv": {
// extensions to preload before other extensions
// extensions to preload before other extensions
"PRELOAD_EXTENSIONS": "arrterian.nix-env-selector"
},

// disable command overriding and updating remote user ID
// disable command overriding and updating remote user ID
"overrideCommand": false,
"userEnvProbe": "loginShell",
"updateRemoteUserUID": false,

// build development environment on creation, make sure you already have shell.nix
"onCreateCommand": "nix-shell --command 'echo done building nix dev environment'",

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
// select nix environment
"arrterian.nix-env-selector"
],

"customizations": {
"vscode": {
"extensions": [
"arrterian.nix-env-selector",
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": []
}
}
23 changes: 12 additions & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@
"dockerComposeFile": "docker-compose.yml",
"service": "dev",
"workspaceFolder": "/workspace",

"userEnvProbe": "loginShell",
"updateRemoteUserUID": false,

"onCreateCommand": "nix-shell --command 'echo done building nix dev environment'",

"extensions": [
"arrterian.nix-env-selector",
"jnoortheen.nix-ide",
"fsevenm.run-it-on",
"ms-azuretools.vscode-docker",
"yzhang.markdown-all-in-one"
]
}
"customizations": {
"vscode": {
"extensions": [
"arrterian.nix-env-selector",
"jnoortheen.nix-ide",
"fsevenm.run-it-on",
"ms-azuretools.vscode-docker",
"yzhang.markdown-all-in-one"
]
}
}
}

0 comments on commit 1c40f2e

Please sign in to comment.