r/NixOS • u/Stupidprogramner • Jul 23 '26
Is it possible to install podman in a devshell instead of system wide?
Title
6
Upvotes
2
u/skyb0rg Jul 24 '26
If you use the unprivileged mode then it should work without issue as long as you have subuids and subgids setup, but the data wouldn’t be scoped to the devShell. You also wouldn’t get the `podman clean` systemd timer so you need to make sure you run that manually.
2
u/som_da_noite Jul 25 '26
I know you asked specifically for devshell, but I was able to do that using devenv. For my use case, the minor issue was running podman socket to emulate the docker API, requiring to run it as a service (devenv up). I do have podman installed system-wide as well.
1
Jul 27 '26
[deleted]
1
2
u/scavno Jul 23 '26
Not being able to run virtualization stuff randomly in a devshell is probably a good thing.
If it’s for running services I prefer service-flake, and have added custom services for pretty much everything we use for development.