update template
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "DevShell",
|
|
||||||
"id": "dev_shell",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "A nix based dev shell"
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/env sh
|
|
||||||
|
|
||||||
echo 'nix --experimental-features "nix-command flakes" develop' >/usr/bin/devShell
|
|
||||||
chmod +x /usr/bin/devShell
|
|
||||||
@@ -1,29 +1,28 @@
|
|||||||
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
|
||||||
{
|
{
|
||||||
"name": "Ubuntu",
|
"name": "Alpine",
|
||||||
"image": "mcr.microsoft.com/devcontainers/base:jammy",
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
// Features to add to the dev container. More info: https://containers.dev/implementors/features.
|
"image": "mcr.microsoft.com/devcontainers/base:alpine-3.17",
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/docker-from-docker:1": {},
|
"ghcr.io/devcontainers/features/nix:1": {}
|
||||||
"ghcr.io/devcontainers/features/nix:1": {},
|
|
||||||
"./dev_shell": {}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
// "forwardPorts": [],
|
// "forwardPorts": [],
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
"postCreateCommand": ".devcontainer/postCreateCommand.sh",
|
// "postCreateCommand": "nix-env -i nixpkgs-fmt",
|
||||||
|
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
"customizations": {
|
"customizations": {
|
||||||
// Configure properties specific to VS Code.
|
// Configure properties specific to VS Code.
|
||||||
"vscode": {
|
"vscode": {
|
||||||
// Set *default* container specific settings.json values on container create.
|
// Set *default* container specific settings.json values on container create.
|
||||||
"settings": {
|
"settings": {
|
||||||
"terminal.integrated.profiles.linux": {
|
"settings": {
|
||||||
"dev": {
|
"terminal.integrated.defaultProfile.linux": "dev-shell"
|
||||||
"path": "/usr/bin/devShell",
|
}
|
||||||
"icon": "terminal-bash"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"terminal.integrated.defaultProfile.linux": "dev"
|
|
||||||
},
|
},
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"jnoortheen.nix-ide",
|
"jnoortheen.nix-ide",
|
||||||
@@ -35,6 +34,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
// "remoteUser": "root"
|
// "remoteUser": "root"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/env sh
|
|
||||||
|
|
||||||
nix-env -i nixpkgs-fmt
|
|
||||||
9
.vscode/settings.json
vendored
Normal file
9
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"terminal.integrated.profiles.linux": {
|
||||||
|
"dev-shell": {
|
||||||
|
"path": "bash",
|
||||||
|
"args": [ "-c", "nix --experimental-features \"nix-command flakes\" develop"],
|
||||||
|
"overrideName": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user