Darnix
Darwin Built with Nix
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
The Darwin kernel (XNU) has been open source since 1999. But "open source" and "you can actually build and boot it" are very different things. XNU depends on proprietary tooling, kexts, and a bunch of open source projects published without a build system.Darnix builds the whole thing with Nix. The kernel, the filesystem, the boot image, all the way to a running QEMU instance. We patched XNU to run on QEMU without kexts, ported HFS+ from a kernel extension into the kernel itself, fixed GRUB's Mach-O loader, and wired it all together as a flake. The build is fully sandboxed. No root, no volume mounting, no device access, no network.The bigger idea is a revival of PureDarwin (https://www.puredarwin.org/), a standalone OS on Apple's open source Darwin layer, with Nix managing everything above the kernel. Sort of like a Nix OS on XNU instead of Linux.Right now the kernel boots, mounts a ramdisk, and runs a single static binary. Next step is a shell.https://github.com/jonhermansen/darnixTechnical details and the full list of patches are in the README. I would love to hear from anyone who’s thought about this space!---Darnix is not affiliated with or endorsed by Apple Inc. This is not macOS. Apple, macOS, and related trademarks are the property of Apple Inc. Darwin is licensed under the APSL.
HN · launched May 22, 2026 · 13 upvotes (top 35%) · 1 view
Niche: code and binary analysis tools · 118 launches, 4 in the last 7 days ▼ -56% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 118 launches in code and binary analysis tools →
Could you build this?
No Rebuilding and packaging Apple's proprietary-dependent Darwin kernel (XNU) and its kexts entirely using Nix requires deep systems programming, kernel internals knowledge, and specialized toolchain hacking.
What it would actually take: Requires deep familiarity with the XNU kernel source code, Mach-O binary formats, low-level Apple toolchains (cctools, ld64), and Nix derivation engineering. You must reverse-engineer or replace missing Apple-internal build tools and proprietary drivers, patching C/C++ kernel headers and orchestrating hermetic builds for complex multi-architecture kernel extensions.
Discussion
1 comment analyzed.
Concerns raised: Apple license restrictions
Competitors
Other products that read as similar to this one : 129 launches clear the similarity bar, closest 8 shown.
Attention rank: #59 of 130 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 192 days after the earliest competitor.
- darwin_embedded · github · 2026-10-14 · 10 upvotes · similarity 0.61
- hackios-xnu-kernel · github · 2026-10-22 · 1626 upvotes · similarity 0.50
- I made a dual-bootable NixBSD (NixOS and FreeBSD) image · hn · 2026-01-29 · 9 upvotes · similarity 0.45
- xntfs · ph · 2026-10-31 · 1 upvotes · similarity 0.41
- Nix on Windows –- proof-of-concept demo · hn · 2026-03-12 · 9 upvotes · similarity 0.41
- Nucleus · hn · 2026-06-09 · 40 upvotes · similarity 0.41
- dipper-xnu · github · 2026-10-29 · 82 upvotes · similarity 0.41
- NixOS-DGX-Spark · hn · 2026-08-02 · 132 upvotes · similarity 0.39
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.