Philpax icon

Philpax

Notes · Sysadmin · Workstation · Dual-boot with Windows and NixOS

Extremely rough notes on how I set up my dual-boot for Windows 11 and NixOS.

I'm avoiding winget and scoop etc because they often do not offer you installation options, and I'm still traumatised from installing an editor and realising that the "Open in Editor" option wasn't added to my right-click menu.

  • Produce a Ventoy USB with both Windows 11 and NixOS.
    • After placing the ISOs on the Ventoy partition, generate an auto-attend XML file with https://schneegans.de/windows/unattend-generator/. This can be used to debloat out of the box.
      • Here's mine.
      • Use the Ventoy web configurator to create an autoinstall profile for Windows 11 that uses the very same autoattend.
  • Partition the drive with a generous EFI partition and a very generous Windows partition using diskpart in the installer after Shift+F10, leaving the remaining space for the Linux install.
powershell
diskpart select disk 0 clean convert gpt create partition efi size=2048 format fs=fat32 quick label="EFI" create partition msr size=16 create partition primary size=1048576 format fs=ntfs quick label="Windows" exit
  • Install Windows, going through the usual gauntlet.
  • Install NixOS in the remaining space.
    • Partition the remaining space with btrfs.
    • Using manual partitioning in the installer, mark the existing EFI partition as /boot, then set the newly created partition to /.
    • Install a graphical NixOS installation.
  • Reboot into both operating systems and confirm you haven't broken them.
  • Reboot into NixOS, copy config over, apply it, hope for the best.