cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
4.5k stars 339 forks source link

Devenv.nix doesn't support devcontainer features settings #562

Open gsantoro opened 1 year ago

gsantoro commented 1 year ago

Describe the bug I would like to create a devcontainer that uses features. If I manually edit the .devcontainer.json to add the features I want, at the next devenv shell command, the file is overwritten and my changes lost

To reproduce

  1. Add the line devcontainer.enable = true; to devenv.nix
  2. run devenv shell to generate a default .devcontainer.json
  3. manually edit .devcontainer.json to add
  "features": {
    "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
  },
  1. run again devenv shell and see those changes lost

Version

devenv: 0.6.2

shyim commented 1 year ago

Did you tried:

devcontainer.settings.features = {
  "ghcr.io/devcontainers/features/docker-outside-of-docker:1" = {};
};