-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parametrize templates #7
Comments
This includes https://github.com/srid/haskell-template in full piece until we do the boolean type of #7
This includes https://github.com/srid/haskell-template in full piece until we do the boolean type of #7
Not sure if reinterpreting
Ultimately though, I think the solution isn't templates but "actions" that change an existing configuration. That way you start with a basic flake parts flake, and run a tool that can make various additions to it, or just add new module files to keep it simple. |
@roberth Just coming back to this. Do you know how the Instead of the following, for example, Lines 33 to 45 in 440ec16
what would the new {
templates.nix-dev-home = inputs.nix-dev-home.templates.default;
templateGenerators.nix-dev-home = ...; # What's this?
} I feel like there's some overlap with your Is this something we can implement today as part of |
Posted a concrete idea juspay/omnix#152 Note: |
Okay, I think this Since |
|
Enrich
nix flake init
with parametersnix flake init
with parameters #5Considerations for parameters
Currently, the parameters introduced in #5 do a simple placeholder replacement across files (content & filename). But we may also need other kinds of substitutions, viz.:
.vscode/*
is included in the generated folder. Same for.github/workflows
and such. Real-world case: feat: Add haskell-template #8Other considerations:
params
a list, to preserve order #10tags
field; Addtags
property to templates #11The text was updated successfully, but these errors were encountered: