Okay, so Windows and NixOS are sharing the EFI partition on disk 1
I’m not quite sure what you mean by “the 600gb is btrfs with my game inside”, but I’m assuming the 237gb partition is your NixOS ext4 partition (also, btw, you can use WinBtrfs to be able to access that partition from Windows)
okay, so…rebuilding your EFI, you’ll need to use your ISO and boot into the Live media.
- open a terminal and run
lsblk
, which will list your partitions, and you’d want to note which one is theext4
one (my guess is that it’ll besdb2
ornvme0n2p2
, but those are only educated guesses as I only have one drive in my system). - you’ll also need to note which is the EFI one (probably
sdb1
ornvme0n2p1
, but again, I’m not sure…if you could post thelsblk
output here then I’d be of more help) - now you need to mount these partitions:
where$ mount -o bind /dev/<ext4> /mnt $ mkdir /mnt/boot $ mount -o bind /dev/<efi> /mnt/boot
/dev/<ext4>
and/dev/<efi>
have the bits replaced with the actual partition signifier: e.g. mine is/dev/nvme0np2
. - …now you can chroot into your NixOS installation with
nixos-enter
:$ nixos-enter
- …and then rebuild:
$ sudo nixos-rebuild switch --option sandbox false
- This should rebuild your bootloader, at which point it should show up in your computers boot options.