Remix.run Logo
▲ dark-star 6 hours ago

most package managers these days know about "orphaned packages" and offer to uninstall those as well, if no other package needs them.

Also, you are claiming that a package manager database can become corrupted. While that is true (but unlikely), it is equally true that some part of your Nix installation can become corrupted. Combined with an advanced filesystem like btrfs you can also go back to the exact system state before the installation of your package.

Worse comes to worst, you can re-install with a list of your dpkg --get-selections to get the exact same state as before (similar to how a declarative installation of Nix would be reset from scratch)

I mean I see the advantages of Nix from the point of view of a daily-driver desktop (or server) OS, but I don't see any benefit from using it to sandbox an AI agent. If you are already a NixOS user, then yeah, it's probably the easiest pick for a VM. But the learning curve is rather high, and if you're, say, an Arch user you would probably just stick to an Arch VM which offers the same benefits (maybe in a slightly less user-friendly way) but doesn't require you to commit to the admittedly bizarre way of how NixOS works, and its two config languages etc.

▲cloudfudge 2 hours ago | parent | next [-]

> it is equally true that some part of your Nix installation can become corrupted

I think a [citation needed] is in order here. The number of times other package dbs have failed me and required reinstallation of packages that otherwise should be in a good state (countless)*, vs the number of times a nix installation has become corrupted (zero) tells me otherwise. I think the fact that the nix store is readonly and the packages are absolutely required to declare their dependencies in a strong way (as opposed to being able to accidentally rely on stuff that happens to be installed) is a huge part of this. When your entire system is symlinks into a set of readonly self-contained blobs, the only "corruption" is basically "your disk is broken."

* There's a reason apt has a "--fix-broken" option and when I type "rpm" into google the first autocomplete is "rpm database corruption".

▲max-privatevoid 5 minutes ago | parent | prev [-]

> Worse comes to worst, you can re-install with a list of your dpkg --get-selections to get the exact same state as before (similar to how a declarative installation of Nix would be reset from scratch)

With the amount of time I've struggled trying to recreate systems this way where getting package versions right was an important detail, all I can say is: You wish!