frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I made a dual-bootable NixBSD (NixOS and FreeBSD) image

https://github.com/jonhermansen/nixbsd-demo
5•jonhermansen•4h ago
I've been working on getting NixBSD (Nix package manager + FreeBSD) to boot alongside NixOS on a shared ZFS pool. The result is a <2GB disk image you can try in QEMU or virt-manager.

What works:

    - GRUB chainloads FreeBSD's bootloader
    - Both systems share a ZFS pool
    - Everything is defined in a single Nix flake
    - Fully reproducible builds (some dependencies are now cached on Cachix)
Planned:

    - Support native compilation of NixBSD (currently cross-compiled on Linux)
    - Many shortcuts were taken to get this working, needs lots of cleanup
    - Add a semi-automated installer like nixos-wizard
Try it:

    qemu-system-x86_64 -enable-kvm -m 2048 \
      -bios /usr/share/ovmf/OVMF.fd \
      -drive file=nixos.root.img,format=raw
Login: nixos/nixos or root/toor

The hardest parts were getting mounts working at boot, making the bootloader setup idempotent, and debugging early init. This disk image could potentially work on a USB stick with a bit more work.

This is very much experimental. My goal is to eventually produce a proper NixBSD installation ISO and consolidate all configuration into one repository while still consuming upstream NixBSD as a flake.

Download: https://github.com/jonhermansen/nixbsd-demo/releases/tag/bui...

Feel free to leave feedback here or on GitHub! Thanks!

Comments

Ericson2314•4h ago
Jon has showed me this before, and I'm very exited!

Multiple kernels, one filesystem is the dream. We'll restore competition between kernels by lowering switching costs to zilch, finally solving the problem in the infamous Rob Pike paper (which is that the switching costs make the path dependency of "just keep working on the same legacy-constrained OS" too powerful).

FreeBSD is just the first non-Linux kernel to be done this way --- OpenBSD has been NixOS-ified too (a bit bitrotted atm though) too. Your favorite kernel can be NixOS-ified too!

jonhermansen•4h ago
John,

Thank you for supporting and encouraging me to push the envelope further.

NixBSD was already in great shape, I just wanted to add a little bit of polish and make it easier for people to consume. I hope that the demo may help get others interested and to get set up locally.

I would like to add support for additional kernels. I heard that NetBSD can also boot from ZFS, but I haven't worked out all the details yet. I might like to experiment with that some time.

I've also been keeping an eye on Cygwin support, and it would also be quite interesting to NixOS-ify ReactOS :p

Show HN: Autonomous recovery for distributed training jobs

https://docs.tensorpool.dev/features/agent
4•tsvoboda•4h ago•2 comments

Show HN: Transcribee: YouTube transcriber that builds a knowledge base

https://github.com/itsfabioroma/transcribee
10•ofabioroma•2h ago•1 comments

Show HN: ShapedQL – A SQL engine for multi-stage ranking and RAG

https://playground.shaped.ai
68•tullie•2d ago•20 comments

Show HN: SimpleSVGs – Free Online SVG Optimizer Multiple SVG Files at Once

https://www.simplesvgs.online/
4•firtaet•2h ago•0 comments

Show HN: VCluster Free – Free K8s Multi-Tenancy with Virtual Clusters

https://www.vcluster.com/blog/launching-vcluster-free-get-enterprise-features-at-no-cost
7•gentele•2h ago•3 comments

Show HN: Built a way to validate ideas with AI personas and Simulated Community

https://www.nichesim.com/
2•justincxa•3h ago•0 comments

Show HN: vind – A Better Kind (Kubernetes in Docker)

https://github.com/loft-sh/vind
12•saiyampathak•4h ago•1 comments

Show HN: An Open Source Alternative to Vercel/Render/Netlify

https://www.shorlabs.com/
21•thirdavenue•10h ago•2 comments

Show HN: I made a dual-bootable NixBSD (NixOS and FreeBSD) image

https://github.com/jonhermansen/nixbsd-demo
5•jonhermansen•4h ago•2 comments

Show HN: Dwm.tmux – a dwm-inspired window manager for tmux

https://github.com/saysjonathan/dwm.tmux
98•saysjonathan•5d ago•17 comments

Show HN: SHDL – A minimal hardware description language built from logic gates

https://github.com/rafa-rrayes/SHDL
42•rafa_rrayes•1d ago•20 comments

Show HN: Nomod payment integrated into usage-based billing stack

http://Link:admin.flexprice.io
8•ShreyaChaurasia•5h ago•4 comments

Show HN: A MitM proxy to see what your LLM tools are sending

https://github.com/jmuncor/sherlock
210•jmuncor•1d ago•113 comments

Show HN: Shelvy Books

https://shelvybooks.com
44•tekkie00•20h ago•17 comments

Show HN: Craft – Claude Code running on a VM with all your workplace docs

2•Weves•5h ago•0 comments

Show HN: The HN Arcade

https://andrewgy8.github.io/hnarcade/
336•yuppiepuppie•1d ago•111 comments

Show HN: Build Web Automations via Demonstration

https://www.notte.cc/launch-week-i/demonstrate-mode
30•ogandreakiro•2d ago•20 comments

Show HN: Pinecone Explorer – Desktop GUI for the Pinecone vector database

https://www.pinecone-explorer.com
20•arsentjev•1d ago•3 comments

Show HN: Externalized Properties, a modern Java configuration library

https://github.com/joel-jeremy/externalized-properties
9•jeyjeyemem•2d ago•7 comments

Show HN: Dotenv-gad – typed, validated .env with CLI and grouping

https://github.com/kasimlyee/dotenv-gad
3•kasimlyee•6h ago•0 comments

Show HN: I built a small browser engine from scratch in C++

https://github.com/beginner-jhj/mini_browser
140•crediblejhj•1d ago•45 comments

Show HN: Clings – Learn C through interactive, Rustlings-style exercises

https://github.com/a-hariti/clings
3•drht_•7h ago•1 comments

Show HN: LemonSlice – Upgrade your voice agents to real-time video

122•lcolucci•2d ago•127 comments

Show HN: Hud – eBPF-based blocking detector for Tokio

https://cong-or.xyz/blocking-async-rust
2•cong-or•7h ago•1 comments

Show HN: Cursor for Userscripts

https://github.com/chebykinn/browser-code
54•mifydev•1d ago•15 comments

Show HN: Cua-Bench – a benchmark for AI agents in GUI environments

https://github.com/trycua/cua
36•someguy101010•3d ago•8 comments

Show HN: I made a new compression algorithm

https://github.com/BrowserBox/LZW-X
4•keepamovin•8h ago•10 comments

Show HN: Formatter Workspace – A multi-pane JSON/XML inspector and formatter

https://www.formatter-workspace.com/
3•maggie-r-m-88•8h ago•0 comments

Show HN: One Human + One Agent = One Browser From Scratch in 20K LOC

https://emsh.cat/one-human-one-agent-one-browser/
313•embedding-shape•2d ago•147 comments

Show HN: We Built the 1. EU-Sovereignty Audit for Websites

https://lightwaves.io/en/eu-audit/
104•cmkr•2d ago•87 comments