Skip to content

Allow setting welcomeText for templates #134

@giodamelio

Description

@giodamelio

I was setting up some flake templates recently and I discovered that there is no way to set a templates welcomeText with Blueprints current functionality. I see it can copy the template description from the flake.nix, but nothing for the welcome text.

I am not sure really what the best course of action would be, it could also copy the welcomeText from the flake, but that would leave it in the new flake.nix which seems less then ideal.

My other idea is allowing a special file (default.nix? template.nix?) in the directory to export a whole template attrset, which would be nice since it would allow setting a different description on top of setting the welcomeText, plus it would be forwards compatible with any future additions to the the template functionality of the nix command. The problem is that that file would also get copied to the new flake, and as far as I can tell there is nothing that can be done about that.

I just wanted to open this in case someone else has a idea of a "good" way to go about this, I would be willing to contribute the feature if a solution is found that is acceptable to all you maintainers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions