flake-parts / templates

A registry of various `flake-parts` templates
MIT License
3 stars 0 forks source link

Enrich `nix flake init` with parameters #5

Closed srid closed 5 months ago

srid commented 6 months ago

Enrich flake templates with a params attribute (eventually, these params will be upstreamed to the respective repos) that defines what to replace in the generated project directory post nix flake init.

This is meant to be consumed by https://github.com/juspay/flakreate which program does the following:

Here's what it looks like to initialize https://github.com/juspay/nix-dev-home whilst doing the appropriate replacements (user name, email):

https://asciinema.org/a/rCOqlKyA3Og8b5WalKV9d1k97

To try this out locally,

nix run github:juspay/flakreate
srid commented 5 months ago

I'll merge this now, but we can continue the conversation for what the final params spec should be, in https://github.com/flake-parts/templates/pull/7