Skip to content
Th0rgalPublic

About

Declarative Omarchy-compatible NixOS & Home Manager workstation stack for Apple Silicon (Asahi)

Resources

Stars

202 stars

Watchers

1 watching

Forks

Repository files navigation

omarchnix

Declarative Omarchy-compatible NixOS and Home Manager desktop stack built for the MacBook Air M2 (Apple Silicon / Asahi) and the Motorola Razr 60 Ultra (running natively side-by-side with Android as a systemd Linux container — managed via the SideSystem cover-screen companion app and Bluetooth HID bridge). QEMU guests support screenshots and desktop testing on ARM and x86 Linux, and the flake also exports example UEFI workstation configurations for downstream users.

See docs/VISION.md for the full architecture, docs/decisions.md (DR-1..DR-19) for recorded design decisions, and docs/showcase.md to reproduce the desktop screenshots below in QEMU/KVM.


Desktop Showcase

MacBook Air M2 · Dynamic Island (2560×1664, appledrm.show_notch=1)

Native hardware-notch integration in omarchy-shell (quickshell / Qt6 QML): volume, brightness & keyboard backlight OSD ears, Secure Enclave Touch ID drop-down (sudo & SSH), local Murmure voice dictation with live waveform, and MPRIS now-playing equalizer.

Dynamic Island Demo · 60 fps (1920×1080) — Watch video (04-dynamic-island-m2air.mp4)
MacBook Air M2 Dynamic Island on NixOS — click to watch the 60 fps demo

Glass Desktop Captures

Native 2560×1600 (1.6x HiDPI) Wayland captures of the starship-subtle glass desktop across three contiguous Spaces — step-by-step VM reproduction in docs/showcase.md:

Space 1 · Frosted Ghostty Terminal (singapore.webp)
Space 1 — Centered frosted Ghostty terminal with fastfetch and Lilex Nerd Font ligatures over Singapore Jewel
Space 2 · Native orb-desktop (GTK4 + WebKitGTK 6.0, bologna-dome.webp) Space 3 · Biometric Touch ID HUD (th0rgal.touchid, kazakhstan-charyn-canyon-peaks.webp)
Space 2 — Centered native Orb Desktop UI with 78% Kawase-blurred sidebar and Markdown + Lean 4 mission view over Bologna Dome Space 3 — Centered frosted Touch ID biometric sheet in active fingerprint-scan state over Charyn Canyon

Reusable Flake Outputs

omarchnix is designed to be consumed as a reusable flake input by your own personal NixOS & Home Manager configuration repo (for example, see Th0rgal/nixos-config for a personal MacBook Air M2 setup with ARM and x86 QEMU test guests):

{
  inputs = {
    omarchnix.url = "github:Th0rgal/omarchnix";
    nixpkgs.follows = "omarchnix/nixpkgs";
    apple-silicon-support.follows = "omarchnix/apple-silicon-support";
    home-manager.follows = "omarchnix/home-manager";
  };

  outputs = { nixpkgs, apple-silicon-support, home-manager, omarchnix, ... }: {
    nixosConfigurations.my-m2air = nixpkgs.lib.nixosSystem {
      system = "aarch64-linux";
      modules = [
        apple-silicon-support.nixosModules.apple-silicon-support
        {
          nixpkgs.overlays = [
            apple-silicon-support.overlays.default
            omarchnix.overlays.default
          ];
        }
        omarchnix.nixosModules.omarchnix
        home-manager.nixosModules.home-manager
        {
          omarchnix = {
            enable = true;
            profile = "asahi"; # "asahi" | "spark" | "workstation" | "vm"
            desktop = {
              enable = true;
              user = "alice";
              theme = "tokyo-night"; # any of the 23+ Omarchy themes
              shellBackend = "omarchy-shell"; # "omarchy-shell" (Quickshell QML) or "waybar"
              autostartTty.enable = true;
            };
            hardware.m2air = {
              enable = true;
              bootloader.enable = true; # removable ARM64 UEFI GRUB on /boot
              fileSystems = {
                enable = true;
                luksUuid = "YOUR-LUKS2-UUID";
                espUuid = "YOUR-ESP-UUID";
              };
            };
          };
        }
      ];
    };
  };
}

Omarchy Ecosystem Compatibility (lib.omarchy, omarchy-shell, plugins.omarchy.org)

  • 23+ Themes & Live Switching: omarchnix.lib.omarchy.importTheme imports all bundled Omarchy colors.toml palettes (or custom directories) at Nix evaluation time; omarchnix theme set <name> switches themes live across omarchy-shell, foot, Hyprland, opencode, claude, and hermes.
  • Quickshell QML Runtime & Plugins: pkgs.omarchnix.omarchy-shell runs upstream omarchy-shell (Qt 6.12 / quickshell) with NixOS FHS shims, while programs.omarchnix.plugins.locked + omarchnix plugin install <id> load validated plugins.omarchy.org plugins without symlinks.
  • Agent-First Ergonomics: Automatically provisions the governed omarchnix system skill and live theme hooks for opencode, claude, codex, and hermes, backed by omarchnix status and omarchnix check.

Reference nixosConfigurations

Host Architecture Target Purpose
m2air aarch64-linux MacBook Air M2 (Asahi) Primary Apple Silicon daily driver on stock nixos-apple-silicon + alx.sh Stage 2 + removable ARM64 UEFI GRUB (EFI/BOOT/BOOTAA64.EFI, configurationLimit = 2, UUID-mounted ESP + LUKS2 cryptroot, asahi-audio DSP, 1.6x HiDPI, dual-boot macOS).
m2air-aurora aarch64-linux MacBook Air M2 (Aurora SEP) m2air plus aurora-silicon/nixos-aurora: Secure Enclave, Touch ID (fprintd) for the lock screen, sudo and Polkit, and FIDO2 (aurora-fido). Runs as a daily driver on hardware; enable it with omarchnix-install-stage2 /boot, reboot, then fprintd-enroll (docs/install-m2air.md §4).
razr (platform = "container") aarch64-linux Motorola Razr 60 Ultra (Android GKI) Full NixOS + Hyprland desktop running natively side-by-side with Android in a droidspaces container (no VM, no dual boot, shared 5G/Wi-Fi). Managed by Th0rgal/sidesystem (Orb-style Android cover-screen app + exclusive Bluetooth keyboard/mouse HID bridge).
spark aarch64-linux NVIDIA Grace / DGX Spark ARM64 UEFI server & workstation (systemd-boot, hardened + Hyprland desktop).
workstation x86_64-linux AMD / Intel desktop & cloud Generic x86_64-linux UEFI workstation (systemd-boot, hardened + Hyprland desktop).
rehearsal aarch64-linux Scaleway Mac mini M2 Pro (M2-L-ASAHI) Disposable BootROM dress rehearsal target with poweroff->reboot guard (docs/runbook-scaleway.md).
vm aarch64-linux Plain QEMU guest Software iteration target without Apple hardware dependencies.

Build the Asahi/NixOS installer ISO:

$ nix build .#installer-bootstrap

Adopting an existing machine

Home Manager activation never overwrites files you already have: the module sets home-manager.backupFileExtension = "hm-bak", so a hand-written ~/.config/hypr/hyprland.lua or ~/.zshrc is renamed to <file>.hm-bak instead of aborting activation.

Deploying to another machine

nix copy --to ssh-ng://host requires the remote nix.settings.trusted-users to contain your account (or a signature by a trusted key), which most hosts do not allow. Use the bundled helper instead; it builds locally, transfers only the missing store paths and switches the remote profile:

$ scripts/remote-switch.sh m2air thomas@192.168.1.165

Known failure modes (crashed lock screen, repeated password prompts, clobbered dotfiles, gsettings schema lookup) are collected in docs/troubleshooting.md.


Status Matrix

Every cell is backed by a recorded gate (CI run or runbook log in docs/logs/). No cell is marked done without evidence.

Gate What proves it Status
G1 — flake evaluates nix eval across all hosts + standalone module checks in CI passed (g1-2026-11-06.md)
G2 — installer ISO builds nix build .#installer-bootstrap in CI, artifact attached passed (g2-2026-11-06.md)
G3 — VM boots shared config QEMU boot log in docs/logs/ passed (g3-2026-11-06.md)
G4 — Asahi bootstrap on real BootROM runbook log from the rehearsal box M2-L-ASAHI cutover runbook + rehearsal power-guard ready; Orb Scaleway allowlist / M2-M out_of_stock logged (m5-m7-2026-11-06.md)
G5 — NixOS install + rebuild on rehearsal nixos-rebuild switch log on the mini M2-L-ASAHI cutover runbook + rehearsal power-guard ready; Orb Scaleway allowlist / M2-M out_of_stock logged (m5-m7-2026-11-06.md)
G6 — Air install, dual-boot macOS kept runbook log from the Air hardware polish + printed runbook ready (install-m2air.md, m5-m7-2026-11-06.md)
G7 — security & container invariants checks.x86_64-linux.security in CI + secret sweep passed (g7-2026-11-06.md)
G8 — Hyprland desktop via Home Manager m2air eval + checks.x86_64-linux.desktop screenshot in CI + boat.dev toplevel build passed (g8-2026-11-06.md, g3-2026-11-06.md)

Method

  • Runbooks, not memory. Every operation on real hardware is written down in docs/ before it is run, and produces a log in docs/logs/.
  • Gates with evidence. A gate without a recorded artifact is not passed.
  • Pinned inputs. flake.lock is committed; upgrades are deliberate commits, not surprises.
  • Rehearse before you cut. Nothing reaches physical BootROM without rehearsal or explicit runbook verification.
  • One writer, no rebase. Straight commits on main, or short-lived feature PRs merged cleanly. No force-push, no history rewriting.

What Is Out of Scope on Apple Silicon

  • Touch ID / Secure Enclave on the stock nixos-apple-silicon kernel (it needs the Aurora kernel and Stage 2 bootloader; use m2air-aurora)
  • Metal (does not exist on Linux; Mesa Honeykrisp Vulkan 1.4 / OpenGL 4.6 is what Asahi ships)
  • Apple's verified boot / SIP inside Linux (replaced by the Asahi m1n1 + U-Boot boot chain + LUKS2 cryptroot + NixOS store reproducibility and AppArmor/container sandboxing)

References

About

Declarative Omarchy-compatible NixOS & Home Manager workstation stack for Apple Silicon (Asahi)

Resources

Stars

202 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages