Couldn't you replicate all of your setup with qemu microvm? Without nix I mean
Coding Agent VMs on NixOS with Microvm.nix
11–20 of 58 posts
Re: Coding Agent VMs on NixOS with Microvm.nix
#12That is quite an involved setup to get a costly autocomplete going. Is that really where we are at? Just outsource convenience to a few big players that can afford the hardware? Just to save on typing and god forbid…thinking? “Sorry boss, I can’t write code because cloudflare is down.”
Generally speaking, once you have a working NixOS config, incremental changes become extremely trivial, safe, and easy to rollback.
Re: Coding Agent VMs on NixOS with Microvm.nix
#13Re: Coding Agent VMs on NixOS with Microvm.nix
#14Couldn't you replicate all of your setup with qemu microvm? Without nix I mean
Yep. What nix adds is a declarative and reproducible way to build customized OS images to boot into.
Re: Coding Agent VMs on NixOS with Microvm.nix
#15But the one-time setup seems like a really fair investment for having a more secure development. Of course, what concerns the problem of getting malicious code to production, this will not help. But this will, with a little overhead, I think, really make development locally much more secure.
And you can automate it a lot. And it will be finally my chance to get more into NixOS :D
Re: Coding Agent VMs on NixOS with Microvm.nix
#16https://github.com/5L-Labs/amp_in_a_box
I was going to add Gemini / OpenCode Kilo next.
There is some upfront cost to define what endpoints to map inside, but it definitely adds a veneer of preventing the crazy…
Re: Coding Agent VMs on NixOS with Microvm.nix
#17[flagged]
Sandboxes provide a "default-deny policy" which is the right starting point. But, current tools lack the right primitives to make fine grained data-access and data policy a reality.
Object-capabilities provide the primitive for fine-grained access. IFC (information flow control) for dataflow.
Re: Coding Agent VMs on NixOS with Microvm.nix
#18Re: Coding Agent VMs on NixOS with Microvm.nix
#19Re: Coding Agent VMs on NixOS with Microvm.nix
#20we run ~10k agent pods on k3s and went with gvisor over microvms purely for density. the memory overhead of a dedicated kernel per tenant just doesn't scale when you're trying to pack thousands of instances onto a few nodes. strict network policies and pid limits cover most of the isolation gaps anyway.