the other issue I noticed with using chris’s workaround… it creates a system unit file in every users’ systemd… is there someway to avoid that?
guessing not at the moment
it creates a system unit file in every users’ systemd…
you means in the ~/.config/systemd/user of each user ?
i don’t have this behaviour.
i’m preparing the update to 25.05, things will break like always… keep in touch.
Known issue : an issue is still existing from the beginning of nixos/podman (2021).
When the dedicated user manually call
systemctl --user stop postgreseverything is working as expect.But when systemd itself call the
stop(via a machinereboot/shutdown), there is sometimes a Kill which does not let podman properly stop the container. For images which ìnternaly usechowncommand (like postgres or pgadmin), the underlying volume is dirty with incorrect permissions. Then the start will throw error until the root chown the volume permissions to user uid.
I recently upgraded to Nixos 25.11 and that issue disappeared, all the containers are stopping properly.
AWESOME !!