I have an application that I need to run in an ubuntu distrobox. I can create the distrobox and run it fine, but when I reboot, any created distroboxes are gone. I end up having to re-create it from scratch every time.
I’ve tried both creating them imperatively (putting distrobox in systemPackages) as well as using the home-manager module, but they disappear in both cases. In the home-manager module case, I’m not even sure how to force a container rebuild without doing a whole system rebuild (restarting distrobox-home-manager.service doesn’t do anything).
I am using docker backend.
I haven’t been able to figure out why I’m getting this behavior and searching hasn’t produce any other posts about this. Is this just a result of nixos not persisting containers, or is there a configuration error that I can fix?
That’s weird, my containers are still there when I reboot (created by distrobox or not). And I don’t even have distrobox installed in my system packages, I use it on the fly with Nix shell.
Do you use impermanence? Could you show your Nix docker configuration?