Skip to content

Instantly share code, notes, and snippets.

@n-studio
Last active November 20, 2025 10:44
Show Gist options
  • Select an option

  • Save n-studio/6b155fc18d0af020de0f934207cafd98 to your computer and use it in GitHub Desktop.

Select an option

Save n-studio/6b155fc18d0af020de0f934207cafd98 to your computer and use it in GitHub Desktop.
Omarchy dual boot

Here are the steps I used to install Omarchy in dual boot with Windows (inspired by https://www.youtube.com/watch?v=9jTk3K3ExaI):

  1. Use iwctl to connect to wifi
  2. sfdisk /dev/nvme0n1 -> make 1 EFI partition (nvme0n1p4 - 1G), 1 Linux partition (nvme0n1p5 - remaining space)
  3. Format
mkfs.vfat -F 32 /dev/nvme0n1p4
mkfs.btrfs /dev/nvme0n1p5
  1. Create subvolumes (not sure if optional or mandatory). Do NOT create a subvolume for snapshots, it will raise errors during archinstall.
mount /dev/nvme0n1p5 /mnt
btrfs su cr /mnt/@
btrfs su cr /mnt/@home
btrfs su cr /mnt/@pkg
btrfs su cr /mnt/@log

umount /mnt
mkdir /mnt/archinstall
mount -o noatime,compress=zstd,discard=async,space_cache=v2,subvol=@ /dev/nvme0n1p5 /mnt/archinstall

mkdir -p /mnt/archinstall/home
mkdir -p /mnt/archinstall/var/cache/pacman/pkg
mkdir -p /mnt/archinstall/var/log

mount -o noatime,compress=zstd,discard=async,space_cache=v2,subvol=@home /dev/nvme0n1p5 /mnt/archinstall/home
mount -o noatime,compress=zstd,discard=async,space_cache=v2,subvol=@pkg /dev/nvme0n1p5 /mnt/archinstall/var/cache/pacman/pkg
mount -o noatime,compress=zstd,discard=async,space_cache=v2,subvol=@log /dev/nvme0n1p5 /mnt/archinstall/var/log

mkdir -p /mnt/archinstall/boot
mount /dev/nvme0n1p4 /mnt/archinstall/boot
  1. Run archinstall following https://learn.omacom.io/2/the-omarchy-manual/96/manual-installation, except;
Disk configuration -> Pre-Mounted configuration -> /mnt/archinstall
Disk > Disk encryption > Disabled (I disabled it out of fear it could break something, but maybe it's possible to enable encryption)
  1. Chroot into the newly created installation
  2. Copy the Windows EFI to the new EFI
mkdir /mnt/win
mount /dev/nvme0n1p1 /mnt/win
cp -r /mnt/win/EFI/Microsoft /boot/EFI
  1. Reboot and login as user and run: curl -fsSL https://omarchy.org/install | bash
  2. Add to /boot/limine.conf
/Windows
comment: Microsoft Windows Boot Manager
comment: order-priority=20
protocol: efi_chainload
image_path: boot():/EFI/Microsoft/Boot/bootmgfw.efi
  1. Enable lock screen
vim ~/.config/hypr/autosstart.conf
exec-once = hyprlock
exec-once = hypridle -time 120 -lock-command "hyprlock"
@n-studio
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment