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.

Revisions

  1. n-studio revised this gist Nov 20, 2025. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion OMARCHY_DUAL_BOOT.md
    Original file line number Diff line number Diff line change
    @@ -52,6 +52,8 @@ protocol: efi_chainload
    image_path: boot():/EFI/Microsoft/Boot/bootmgfw.efi
    ```
    10. Enable lock screen
    ```
    vim ~/.config/hypr/autosstart.conf
    exec-once = hyprlock
    exec-once = hypridle -time 120 -lock-command "hyprlock"
    exec-once = hypridle -time 120 -lock-command "hyprlock"
    ```
  2. n-studio revised this gist Nov 20, 2025. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion OMARCHY_DUAL_BOOT.md
    Original file line number Diff line number Diff line change
    @@ -50,4 +50,8 @@ comment: Microsoft Windows Boot Manager
    comment: order-priority=20
    protocol: efi_chainload
    image_path: boot():/EFI/Microsoft/Boot/bootmgfw.efi
    ```
    ```
    10. Enable lock screen
    vim ~/.config/hypr/autosstart.conf
    exec-once = hyprlock
    exec-once = hypridle -time 120 -lock-command "hyprlock"
  3. n-studio revised this gist Nov 19, 2025. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions OMARCHY_DUAL_BOOT.md
    Original file line number Diff line number Diff line change
    @@ -42,12 +42,12 @@ mkdir /mnt/win
    mount /dev/nvme0n1p1 /mnt/win
    cp -r /mnt/win/EFI/Microsoft /boot/EFI
    ```
    Add to /boot/limine.conf
    8. Reboot and login as user and run: `curl -fsSL https://omarchy.org/install | bash`
    9. 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
    ```
    8. Reboot and login as user and run: `curl -fsSL https://omarchy.org/install | bash`
    ```
  4. n-studio revised this gist Nov 19, 2025. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions OMARCHY_DUAL_BOOT.md
    Original file line number Diff line number Diff line change
    @@ -23,9 +23,9 @@ 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
    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
  5. n-studio revised this gist Nov 19, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion OMARCHY_DUAL_BOOT.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    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. `fsdisk /dev/nvme0n1` -> make 1 EFI partition (nvme0n1p4 - 1G), 1 Linux partition (nvme0n1p5 - remaining space)
    2. `sfdisk /dev/nvme0n1` -> make 1 EFI partition (nvme0n1p4 - 1G), 1 Linux partition (nvme0n1p5 - remaining space)
    3. Format
    ```
    mkfs.vfat -F 32 /dev/nvme0n1p4
  6. n-studio created this gist Nov 19, 2025.
    53 changes: 53 additions & 0 deletions OMARCHY_DUAL_BOOT.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    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. `fsdisk /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
    ```
    4. 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
    ```
    5. 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)
    ```
    6. Chroot into the newly created installation
    7. Copy the Windows EFI to the new EFI
    ```
    mkdir /mnt/win
    mount /dev/nvme0n1p1 /mnt/win
    cp -r /mnt/win/EFI/Microsoft /boot/EFI
    ```
    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
    ```
    8. Reboot and login as user and run: `curl -fsSL https://omarchy.org/install | bash`