Skip to content

Commit

Permalink
fix: devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Jul 8, 2024
1 parent 13de478 commit 156ebc0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"name": "Hatsu Dev Container",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {
"ghcr.io/devcontainers/features/nix": {},
"ghcr.io/devcontainers-community/features/direnv": {}
"ghcr.io/devcontainers/features/nix:1": {
"extraNixConfig": "experimental-features = nix-command flakes,keep-outputs = true,keep-derivations = true"
}
},
"onCreateCommand": {
"install-direnv": "set -xeuo pipefail; nix profile install nixpkgs#direnv nixpkgs#nix-direnv && mkdir -p ~/.config/direnv && echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' >> ~/.config/direnv/direnvrc && direnv allow && echo 'eval \"$(direnv hook bash)\"' >> ~/.bashrc"
},
"customizations": {
"vscode": {
Expand Down

0 comments on commit 156ebc0

Please sign in to comment.