That's only true for the declarative parts of your system. What if AI decides to delete your photo library and you don't have a backup? Or it deletes your old generations to "save space"?
Yeah, declarativeness and sandboxing are almost orthogonal.
However, it is worth noting that Nix has pretty good sandboxing facilities.
Nevertheless, more tooling on this area would be welcome. It is still a bit behind Guix.
Use a sandboxing tool that offers restrictions on the filesystem and rollbacks on whatever parts the LLM agent has write access to. I use this one: https://nono.sh/
That's why I mentioned the backup system as a requirement. Ideally the OS can help set this up for non-techy folks from the get-go.
zfs snapshots, which its now allowed to touch.
maybe back up your important files?
Hmmm.... In my use cases, ai just writes the nix expressions and simulates my entire data center setup in qemu. It also writes a script to deploy the thing. I do the final deployment
ZFS and many other filesystems have snapshots. LLMs don't go around deleting snapshots yet.
I guess you missed
> Combine it with a good personal file backup system like borg and you're golden
As for old generations, I keep my system flakes in a git repo. Even if they're garbage collected I could checkout the old commit and rebuild if necessary.