cachix / devenv

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

Generate ``devcontainer.json`` #26

Closed domenkozar closed 1 year ago

domenkozar commented 2 years ago

https://containers.dev/implementors/json_reference/#general-properties

domenkozar commented 1 year ago

https://twitter.com/domenkozar/status/1594282602059661313

hugosenari commented 1 year ago

yo dawg i heard you like config, so write a module to write files from config, then write a module to convert structured nix to these configs as json, yaml, toml, txt, then add module that use previous config to write your devcontainer.json Or whatever your user want on top of that.

Personal note: I prefer single binary commands like yj or even a nushell helper than python like in pkgs lib formater, because the final closure size.

Random note:

This multi-layered structure in the Yo Dawg formula makes it reminiscent of the"strange loops" described in Douglas Hofstadter's Gödel, Escher, Bach.

domenkozar commented 1 year ago

https://github.com/cachix/devenv/pull/142