samuela / nixos-up

The fastest NixOS install there is! 🏎️🏁
223 stars 25 forks source link

Options for dual boot? #10

Open izzues opened 3 years ago

izzues commented 3 years ago

Hey,

I'd love to use your script to install and dual boot NixOS on a machine where Windows 10 is already installed (legacy BIOS). Is there a straightforward way to do it? By looking at the code I suppose not. If that's the case, I guess fully automatizing the process wouldn't be a trivial task either, but what about a simpler case? What if the script let you choose a partition or unallocated space and installed NixOS there instead of erasing the entire disk? Then the relevant options for OS autodiscovery could be automatically included in configuration.nix as per this guide.

Sorry if my suggestions are useless, I don't have experience with this.

Thanks for the great work!

samuela commented 3 years ago

Mmm, yes this would definitely be nice to have. I haven't had to install nixos on a dual boot machine before, but it's probably much more common than the full disk install. I'll have to look into the details more.

Ultimately I'd like nixos-up to automate the process as much as possible. I think a flag specifying which partition to install on makes sense.

BentonEdmondson commented 2 years ago

Yes this would be very nice. @samuela are you planning on doing this anytime soon?

samuela commented 2 years ago

I don't have a need for this atm, so it's not on my TODO list but I'd be happy to accept a PR. Here's what I think needs to happen:

Shouldn't be too hard to do, but I don't have a convenient system to test this on atm.