I'm trying to deploy podman user services in a corporate network environment where all Linux users have their home directories NFS-mounted from a common file server. I'm not sure how to have computer-specific user-level services when my user's home-directory on every machine is nfs-mounted to the same share.
For podman to work cleanly with network home directories, I've found that I'm going to need to set graphroot setting to point to somewhere on each local machine, otherwise the containers on each machine will try to use the same storage and get confused. Ok, I can do that (though will take some work with IT to set this up).
When turning pods/containers into user-level services (using podman generate systemd) I'd ordinarily put the .service file in ~/.config/systemd/user but this is also on the network share and thus would affect my user in every location.
Is there a standard way to get around this issue? How do I have user-level services on a per-machine basis (i.e. I may want different machines to have different services, especially if these services are containers referenced by their ID)?
Bonus question extension: I also intend to set loginctl enable-linger. Since the NFS home directories are lazy-mounted, will this actually result in services being started on boot?