devenv icon indicating copy to clipboard operation
devenv copied to clipboard

Generate ``devcontainer.json``

Open domenkozar opened this issue 3 years ago • 1 comments

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

domenkozar avatar Nov 12 '22 14:11 domenkozar

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

domenkozar avatar Nov 20 '22 10:11 domenkozar

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.

hugosenari avatar Nov 26 '22 05:11 hugosenari

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

domenkozar avatar Nov 29 '22 10:11 domenkozar