frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: machine0 – Persistent NixOS VMs You Control from the CLI

https://machine0.io
41•bwm•3h ago
Hi HN! Excited to launch machine0, a CLI that makes it easy to create, provision and snapshot persistent NixOS (& Ubuntu) VMs.

You can think of machine0 as a modern VPS provider. VMs stay on unless switched-off (with 99.99% uptime), they have static IPs and HTTPS endpoints, 1-60 vCPU, up to 240GB RAM and optionally GPUs. The CLI provides commands to manage lifecycle, snapshots and also provision the VMs using Nix flakes or Ansible playbooks. VMs are priced by the minute of usage.

What makes machine0 unique is that it has first class support for NixOS! In a nutshell, NixOS lets you define your entire OS as code (think Terraform but for your Linux). A flake declares your system state (packages, services, firewall rules, users...) and pins all dependencies via a lockfile. Given the same flake.nix and flake.lock, `nixos-rebuild switch` always produces the exact same system.

The NixOS ecosystem is mature, and flakes are expressive: at the system level you can define packages, what's in /etc, firewall rules, users & groups etc. At the user level, you can define your shell, aliases, tmux and vim config. Having your entire environment defined as code makes it easy to audit what's installed and how things are set up. You can rollback by reverting the last commit. And agents can write the code for you and test it against disposable machine0 VMs.

If you'd like to dive right in, these commands will get you started:

  npm install -g @machine0/cli
  machine0 new my-vm --image nixos-25-11        # create a new nixos VM
  machine0 provision my-vm ./flake#my-profile   # provision it using a nix flake
  machine0 ssh my-vm                            # ssh in
  machine0 stop my-vm                           # stop the VM
  machine0 images new my-vm my-snapshot         # create a snapshot
  machine0 new my-clone --image my-snapshot     # create a new VM from the snapshot
- Demo of installation + NixOS provisioning via Claude Code: https://www.youtube.com/watch?v=RT8N0_e3Vfg

- Documentation: https://docs.machine0.io/introduction/overview

- machine0 NixOS flakes: https://github.com/fdmtl/machine0-nixos

If you're in the habit of using VMs, or want to know what the NixOS fuss is about, would love for you to give machine0 a try!

Comments

setheron•1h ago
Big fan of exe.dev so the added Nix seems like a solid value add.

exe.dev is great but lurking in my mind is: "how will I replicate this if I ever need to move to AWS etc.." for all the service composition.

Site looks great too

bwm•1h ago
Thanks! Yup, one of the benefits of defining your VMs as code using Nix, is that you can take that code to any supplier, and you're guaranteed exactly the same build.
setheron•17m ago
Come join us at https://tacosprint.org/ We have more availability! (Also sponsor maybe )
JeanEdern•1h ago
How does machine0 handle NixOS state drift and recovery in practice—for example, if a VM is manually modified outside the flake, can I detect or reset that drift, and how do snapshots interact with flake-based provisioning?
bwm•48m ago
It's not possible to modify the VM outside of the flake :)
nc•1h ago
I’ve been using machine0 for hosting openclaw and a couple of web apps i’ve been working on. Great product super easy to use with claude code.
bwm•1h ago
Been great having you :)
EnigmaCurry•1h ago
I'm happy to see this, and I have lots of thoughts about this. Building declarative services on Nix is a far superior way of distributing Linux to VMs than most any other way I've tried. I am working [1] on very similar things, but I've been leaning more on the self-hosted path, my VM template targets libvirt and Proxmox VE with a single CLI api. I even have an experimental branch that targets DigitalOcean. For VMs especially, I want my OS to be immutable. My VMs should contain no state other than my application state. Upgrades should be a full image replacement and reboot.

So in my template, I have created the VMs with two disks: first one is for NixOS and is built from an image, and it is read-only. The second is mounted to /var and is used for all system configuration as well as application state. If I have multiple VMs, they can all share the same base image (thin provisioned). That's the mode that I want for my deployments of services, immutable and as stateless as possible. For agent use, its different, you actually want a mutable NixOS root so that the agent can do what it wants.

I built three modes: immutable, semi-mutable, and mutable. mutable removes the read-only lock on the root, and just lets you manage the VM as a pet. semi-mutable adds an ephemeral overlayfs that gets wiped the next time you upgrade the base image. So that gives you kind of the best of both worlds: an immutable read-only base image and the ability to "nix profile add" whatever you (or your agent) wants, but with the contract that these imperatively installed things will disappear the next time you upgrade. Are you planning on adding a LICENSE to your machine0-nixos repo?

[1] https://github.com/EnigmaCurry/nixos-vm-template

bwm•1h ago
Always happy to meet others that are working with NixOS :) I've just added the License - it's MIT.
n3mo-dev•1h ago
Great product, with great explanation
bwm•1h ago
Thank you!

Iroh 1.0

https://www.iroh.computer/blog/v1
587•chadfowler•3h ago•198 comments

TinyWind: A pixel pirate sailing game with real wind physics (380k+ kms sailed)

https://tinywind.io
258•tinywind•2h ago•52 comments

Ask HN: Has anyone replaced Claude/GPT with a local model for daily coding?

212•cloudking•4h ago•138 comments

Typst 0.15.0

https://typst.app/docs/changelog/0.15.0/
65•schu•1h ago•8 comments

My Homelab AI Dev Platform

https://rsgm.dev/post/ai-dev-platform/
120•rsgm•3h ago•32 comments

How TimescaleDB compresses time-series data

https://roszigit.com/en/blog/timescaledb-compression-hypercore
44•lkanwoqwp•1h ago•4 comments

Game Engine White Papers Commander Keen

https://forgottenbytes.net/commander_keen.html
30•mfiguiere•1h ago•3 comments

Making glass-to-metal seals for home­made vacuum tubes

https://maurycyz.com/projects/glass/1/
81•zdw•1d ago•25 comments

Launch HN: Drafted (YC P26) – Models for residential architecture

26•PrimalNick•2h ago•22 comments

Show HN: Fata – Spaced repetition to fight skill rot from AI coding

https://fata.dev
24•djoume•4d ago•11 comments

Hetzner Price Adjustment

https://docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/#cloud-servers
149•tuhtah•5h ago•266 comments

Fox to buy Roku

https://www.wsj.com/business/deals/fox-roku-deal-f6e564f9
182•thm•6h ago•251 comments

Boot Naked Linux

https://nick.zoic.org/art/boot-naked-linux/
38•abnercoimbre•2h ago•16 comments

Copper transport drug restores memory and clears toxic Alzheimer's proteins

https://www.monash.edu/news/articles/copper-drug-restores-memory-and-clears-toxic-alzheimers-prot...
158•bookofjoe•4h ago•58 comments

CrankGPT

https://crankgpt.com
473•rishikeshs•5h ago•193 comments

The Alaska Server

https://serialport.org/blog/the-alaska-server/
5•speckx•25m ago•0 comments

Your ePub Is fine

https://andreklein.net/your-epub-is-fine-kobo-disagrees-blame-adobe/
844•sohkamyung•20h ago•286 comments

Apple Foundation Models

https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/apple-foundation-models
423•MehrdadKhnzd•14h ago•196 comments

Show HN: machine0 – Persistent NixOS VMs You Control from the CLI

https://machine0.io
41•bwm•3h ago•11 comments

Can Europe train a frontier AI model on the compute it owns?

https://github.com/sammysltd/euromesh
64•smashini•5h ago•80 comments

Show HN: Exploiting Slack's video embeds to achieve E2EE communication

https://v1c.rocks/log/exploiting-slack-video/
20•victorio•3h ago•2 comments

Around 200 Stanford students walk out as Google CEO takes stage

https://www.sfgate.com/tech/article/sundar-pichai-stanford-commencement-22304888.php
14•pera•28m ago•1 comments

Openrouter Fusion API

https://openrouter.ai/openrouter/fusion
177•tdchaitanya•11h ago•68 comments

Memory safety CVEs differ between Rust and C/C++

https://kobzol.github.io/rust/2026/06/15/how-memory-safety-cves-differ-between-rust-and-c-cpp.html
58•nicoburns•2h ago•45 comments

Teenagers Stayed Overnight at Their School and Found Hidden Ancient Roman Ruins

https://www.smithsonianmag.com/smart-news/these-italian-teenagers-stayed-overnight-at-their-schoo...
143•thunderbong•4d ago•72 comments

Even more batteries included with Emacs

https://karthinks.com/software/even-more-batteries-included-with-emacs/
326•signa11•16h ago•117 comments

Improvement in advanced Alzheimer’s disease following high-dose psilocybin

https://www.frontiersin.org/journals/neuroscience/articles/10.3389/fnins.2026.1813281/full
157•cl3misch•12h ago•117 comments

Claude Corps

https://www.anthropic.com/news/claude-corps
6•Mustan•1h ago•0 comments

Ported my C game to WASM, here's every bug that I hit

http://ernesernesto.github.io/writes/portingmatchmorphosistowasm/
85•birdculture•3d ago•70 comments

Dalus (YC W25) Is Hiring a Senior Software Engineer in Germany

https://www.ycombinator.com/companies/dalus/jobs/5IDmKJt-senior-software-frontend-engineer-german...
1•sebastianvoelkl•12h ago