generated from stubbfel/nix-project-template
update to 24.05
This commit is contained in:
@@ -1,31 +1,13 @@
|
||||
// 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": "Alpine",
|
||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||
"image": "mcr.microsoft.com/devcontainers/base:alpine",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/nix:1": {}
|
||||
},
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
// "postCreateCommand": "nix-env -i nixpkgs-fmt",
|
||||
|
||||
// Configure tool-specific properties.
|
||||
"runArgs": ["--userns=keep-id"],
|
||||
"postCreateCommand": "sudo apk add nix nix-dev nix-doc nix-manual nix-bash-completion && sudo chown -R vscode:vscode /nix && echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf",
|
||||
"runArgs": [
|
||||
"--userns=keep-id"
|
||||
],
|
||||
"containerUser": "vscode",
|
||||
"customizations": {
|
||||
// Configure properties specific to VS Code.
|
||||
"vscode": {
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {
|
||||
"settings": {
|
||||
"terminal.integrated.defaultProfile.linux": "dev-shell"
|
||||
}
|
||||
},
|
||||
"extensions": [
|
||||
"jnoortheen.nix-ide",
|
||||
"ms-azuretools.vscode-docker",
|
||||
@@ -36,7 +18,4 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||
// "remoteUser": "root"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user