-
|
Is there a built-in way to bootstrap (with no unflake.nix file present) a flake-file+unflake project the way it is currently configured in the unflake/ template? The default.nix file depends on an unflake.nix file present for its generation. I've successfully done it by modifying the default.nix, checking the presence of the unflake.nix file and "manually" creating a flake-file.inputs with the minimum necessary if it is not there. But there might be a simpler way that I don't see? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey, @dacaga. I did exactly that to bootstrap the template, there's currently no built-in way to re-create the template from scratch, but having that looks like a good idea. I guess the best way would be to create another app in the environment exposed at /modules/unflake.nix, perhaps a If you are open to contribute any of those feel free to send a PR. |
Beta Was this translation helpful? Give feedback.
Hey, @dacaga. I did exactly that to bootstrap the template, there's currently no built-in way to re-create the template from scratch, but having that looks like a good idea.
I guess the best way would be to create another app in the environment exposed at /modules/unflake.nix, perhaps a
bootstrap-unflakeshell app that creates the basics. Same for /modules/npins.nixbootstrap-npins. And perhaps maybe flakesbootstrap-flake. The apps for flake bootstrapping could be run withnix run github:vic/flake-file#bootstrap-flakemaybe also others.If you are open to contribute any of those feel free to send a PR.