No description
  • Rust 99.4%
  • Nix 0.6%
Find a file
zandzak500 c7276ec493
All checks were successful
Code quality / build (push) Successful in 3m8s
meta/branding/branding.md bijwerken
2026-10-23 10:28:41 +00:00
.cargo Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
.forgejo/workflows Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
.vscode Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
meta/branding meta/branding/branding.md bijwerken 2026-10-23 10:28:41 +00:00
src Merge branch 'main' into chore/xtask 2026-10-22 18:30:13 +00:00
xtask Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
.envrc Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
.envrc.example Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
.gitignore Resolve leftover merge conflict markers and fix borrow-checker errors 2026-10-22 16:09:09 +02:00
Cargo.lock Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
Cargo.toml Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
flake.lock chore: Setup basic build system 2026-10-15 15:09:54 +02:00
flake.nix Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
readme.md Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00
rust-toolchain.toml Chore: Migrate build/run scripts to cargo xtask 2026-10-22 19:30:37 +02:00

Operating system

Setup

NixOS / Nix

Flakes enabled, then direnv allow (or nix develop).

Windows 11

  • Install rustup.
  • QEMU: winget install SoftwareFreedomConservancy.QEMU
  • OVMF firmware: not bundled with QEMU on Windows. Download a combined OVMF.fd and set OVMF_PATH to it (see Configuration below).
  • VirtualBox, optional, only for cargo xtask vbox.

Development

cargo xtask run     # build and boot in QEMU (default)
cargo xtask build   # build the kernel only
cargo xtask image   # build target/ray-os.img + .iso
cargo xtask vbox    # build and run in the "RayOS" VirtualBox VM

Add --release for a release build.

Plain cargo build/cargo run build xtask itself, not the kernel.

Configuration

QEMU and VBoxManage are found on PATH; override via env vars if needed. Copy .envrc.example to .envrc, uncomment what you need, direnv allow. If something required is missing, cargo xtask tells you which var to set.

Variable Used by Default / when needed
OVMF_PATH run Set by the Nix devShell; required otherwise
QEMU_PATH run Only if qemu-system-x86_64 isn't on PATH
VBOXMANAGE_PATH vbox Only if VBoxManage isn't on PATH
VBOX_VM_NAME vbox Defaults to RayOS