Add flag to enable creation of `result` symlinks for build commands
On the one hand, it's really nice that nh * build doesn't create result symlinks, as they (if not cleaned up) prevent garbage collection,
on the other hand it's sometimes really helpful to be able to look around the files that will end up on my system.
Therefore, I would suggest adding a new flag (e.g., --symlink-result) to the nh os build & nh home build commands that creates the result symlink.
If you agree that this would be a good feature for nh I can also try to implement it 🙂
The current implementation unconditionally sets the out-link into some ::tempfile here: https://github.com/viperML/nh/blob/7f8a1859ed6ea971fcf49b07ca8938e3000c3af4/src/nixos.rs#L39-L41
If you want to implement it, check if matches!(rebuild_type, OsRebuildType::Build(_), and change that path to result
closed by 6878bc368e03915680dc1cfc929dc825bf5b7ca1
is seems that if i use nh darwin switch in any folder, it will create a @result in it :(
it will polute the current folder
it seems that it be fixed by #187