hercules-ci / flake-parts

❄️ Simplify Nix Flakes with the module system
https://flake.parts
MIT License
699 stars 38 forks source link

Add `templates` to `flake` #191

Closed 9glenda closed 10 months ago

9glenda commented 10 months ago

Add the templates option to flake in order to be able to use nix init -t

roberth commented 10 months ago

Templates aren't built and don't involve a system string, so I think it should go in flake rather than perSystem. It seems that if you want the template to be built rather than copied, that would require a new feature in nix itself.

nix init docs

9glenda commented 10 months ago

Templates aren't built and don't involve a system string, so I think it should go in flake rather than perSystem. It seems that if you want the template to be built rather than copied, that would require a new feature in nix itself.

nix init docs

Oh sorry my bad, you're right it should be added to flake. Thanks for the clarification.