frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://machine0.io
22•bwm•1h 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•42m 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•40m 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.
nc•16m 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•15m ago
Been great having you :)
EnigmaCurry•10m 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

Why long context eats your VRAM: the KV cache explained

https://vettedconsumer.com/the-kv-cache-explained-why-long-context-eats-your-vram-and-how-to-fit-...
1•ermantrout•1m ago•0 comments

Show HN: Vet Turned Founder, AI Lawn Diagnosis

https://grassdx.com/
1•andrewbr•1m ago•0 comments

Heikki's Garden of Flowers, a catalogue of pictorial letterpress works

https://garden-of-flowers.heikkilotvonen.com/?essay
1•NaOH•2m ago•0 comments

Ask HN: How do you track commitments you make to other people in conversation?

1•annonymousjaat•2m ago•0 comments

Single dose of magic mushroom psychedelic can cause anatomical brain changes

https://www.theguardian.com/science/2026/may/05/magic-mushrooms-psychedelic-changes-brain-anatomy...
1•helterskelter•2m ago•0 comments

Google vs. Oracle (2021)

https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America,_Inc.
1•tosh•2m ago•0 comments

Game Engine White Papers Commander Keen

https://forgottenbytes.net/commander_keen.html
2•mfiguiere•5m ago•0 comments

Anti-slopping: An innovation for rectifying LLM writing clichés

https://research.thoughtworks.com/library/anti-slopping-an-innovation-for-rectifying-llm-writing-...
1•freeatnet•7m ago•0 comments

JD Vance Confirms Iran Will Get Jaw-Dropping Sum Under Trump Deal

https://newrepublic.com/post/211826/jd-vance-us-pay-iran-billions-trump-deal
6•nothrowaways•8m ago•2 comments

A Clojure Dialect on Rust

https://clj.rs
1•caseym831•9m ago•0 comments

At Berkeley, the enrollment dip [in CS] has come from a supply-side constraint

https://alumni.berkeley.edu/california-magazine/2026-summer/major-issue/
1•jedberg•10m ago•1 comments

Oura and Counsel Health Partner to Provide AI-Enabled Care Within the Oura App

https://ouraring.com/blog/counsel-integration-oura-app/
1•bariumbitmap•11m ago•0 comments

AI and Amateurism

https://pluralistic.net/2026/06/15/vernacular/
1•hn_acker•11m ago•0 comments

Show HN: Turboquant.cpp – Quantize embeddings to 1-4 bits, no training (400 LoC)

https://github.com/RunEdgeAI/turboquant.cpp
1•andrewmikhail•12m ago•0 comments

Ask HN: Whats your intuition on AGI breakthrough?

4•filup•15m ago•0 comments

Ask HN: Did your (non-AI) research field get less fun after commercialization?

1•blt•15m ago•0 comments

Claude Corps

https://www.anthropic.com/news/claude-corps
3•Mustan•16m ago•0 comments

The domain Pinboard.in has expired today

https://ph.godaddy.com/whois/results.aspx?domain=pinboard.in
2•kome•16m ago•0 comments

Running local models is good now

https://vickiboykis.com/2026/06/15/running-local-models-is-good-now/
2•sixhobbits•17m ago•0 comments

Programming Parallel Computers

https://ppc.cs.aalto.fi/
1•ibobev•18m ago•0 comments

How Does a Database Work?

https://cstack.github.io/db_tutorial/
1•ibobev•18m ago•0 comments

Tea Time Numerical Analysis

https://lqbrin.github.io/tea-time-numerical/
1•ibobev•19m ago•0 comments

SVGs and PDFs can both be interactive

https://vexlio.com/blog/svgs-and-pdfs-can-both-be-interactive/
3•birdculture•19m ago•0 comments

Fruit Is Too Sweet

https://www.theatlantic.com/culture/2026/06/fruit-sweet-sumo-cotton-candy-grape/687507/
4•gmays•20m ago•0 comments

Balkan Sworn Virgins

https://en.wikipedia.org/wiki/Balkan_sworn_virgins
4•Semaphor•20m ago•0 comments

Security Risks of Apple's AI-Built Shortcuts

https://www.kylereddoch.me/blog/describe-a-shortcut-create-a-risk-the-security-side-of-ai-built-a...
1•speckx•21m ago•0 comments

'Are We Dating the Same Guy?' Facebook dating group faces lawsuit

https://www.13newsnow.com/video/news/crime/are-we-dating-the-same-guy-facebook-dating-group-faces...
1•randycupertino•21m ago•0 comments

An Open Letter on Transparent AI Cyber Protections

https://freefable.org/
1•mlinksva•23m ago•0 comments

More Than Syntax

https://redmonk.com/rstephens/2026/06/12/more-than-syntax/
1•mooreds•24m ago•0 comments

Ask HN: Do you use any (semi) autonomous agents?

2•jamestimmins•24m ago•0 comments