nixos-anywhere
nixos-anywhere copied to clipboard
Unable to enable flakes on target easily
If there is a way to do this, it is not documented well. If it is documented, where is it? https://github.com/nix-community/nixos-anywhere/blob/main/docs/howtos/no-os.md
This talks about a bunch of manual steps... Can we make an installer ISO that just does this? Of course we can, but there is nothing in the docs to tell us how.
It tells us how do do this WITHOUT flakes, but the installed system defaults to no flakes, which is very frustrating to have to manually go install and is very counter-intuitive if you are installing FROM flakes and the target I want should have flakes enabled.
Currently I have to do weird things like force an addition of a flake.nix into /etc/nixos as well as change the /etc/nix/nix.conf to be sure flakes are enabled and it feels strange to do so.
Most people are already using flakes (or at least they are encourage to do so...) and this undocumented way to turn on flakes is defeating the whole purpose of nixos-anywhere when you want flakes enabled everywhere. Optimally, it should be a simple setting that is well documented. I am certainly willing to issue a pull request to do this, but my hacked technique is not optimal and if there is a better way I'd like to discuss it.