add flake

This commit is contained in:
2024-06-17 21:01:43 +00:00
parent 6ab2188d3f
commit 6c06cf9fd2
2 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
{
"name": "Alpine",
"image": "mcr.microsoft.com/devcontainers/base:alpine-3.20",
"postCreateCommand": "sudo apk add nix nix-dev nix-doc nix-manual nix-bash-completion && sudo chown -R vscode:vscode /nix && mkdir -p ~/.config/nix && echo 'experimental-features = nix-command flakes\n sandbox = false' > ~/.config/nix/nix.conf",
"customizations": {
"vscode": {
"extensions": [
"bbenoist.Nix"
]
}
},
"runArgs": [
"--userns=keep-id"
],
"containerUser": "vscode"
}