Hasty Briefsbeta

json2dir: a JSON-to-directory converter, a fast alternative to home-manager

16 days ago
  • #file-system
  • #json
  • #nix
  • json2dir converts JSON objects into directories and files.
  • Objects in JSON represent directories, strings represent file contents.
  • Arrays denote symlinks (["link", target]) or executable scripts (["script", content]).
  • Input must be UTF-8 encoded; non-UTF-8 content is unsupported.
  • Security caution: TOCTOU attacks possible with symlinks.
  • Available as a Nix package; build with `cargo build` or `nix build`.
  • Nix cache available at https://json2dir.cachix.org.
  • Project encourages contributions: fork, issues, PRs welcome.