Conversation
|
@r-vdp, I just saw your comment on #84 (comment). I think this PR is going to fall afoul of your recommendation there since I chose to put the flake in
If you disagree, I can change the default directory to |
|
Hi @mike-lloyd03, thank you so much for your contribution, and I'm sorry that it took me so long to get back to you on this. I think my main gripe with this, is indeed the default, since I am not convinced that either option ( How about we drop the default and we still require people to be explicit about the location of their flake, but we add the init command to make it easier to get started? Do you think that that's a reasonable compromise? Those who really don't want to type this everytime, can then just create an alias in their shell to always set the default to their preferred value. Let me know what you think! |
|
Closed by #210 |
This PR makes the
--flakeflag optional and uses/etc/system-manageras the default configuration dir. This brings it inline withhome-manager switchandnixos-rebuild switchwhich also use a default dir. This will not be a breaking change for users who are using an alternate location since the--flakeflag will still work.Additionally, this adds an
initsubcommand which initializes this directory in the default location (or can be manually specified). It will use the exampleflake.nixprovided in the README.md file to create the flake.If you're okay with these changes, I'll also update the docs to include an example of how to use this.
Thanks.