Podman user units could not be found

I use the config from the wiki page Podman - NixOS Wiki

{
  virtualisation = {
    podman = {
      enable = true;

      # Create a `docker` alias for podman, to use it as a drop-in replacement
      dockerCompat = true;

      # Required for containers under podman-compose to be able to talk to each other.
      defaultNetwork.dnsname.enable = true;
    };
  };
}

but some reason the podman user units cannot be found

systemctl --user status podman.socket 
Unit podman.socket could not be found.
systemctl --user status podman.service
Unit podman.service could not be found.

the system units work

Also the units seem to exist

bat /etc/systemd/user/podman.service
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /etc/systemd/user/podman.service
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ [Unit]
   2   │ Description=Podman API Service
   3   │ Requires=podman.socket
   4   │ After=podman.socket
   5   │ Documentation=man:podman-system-service(1)
   6   │ StartLimitIntervalSec=0
   7   │ 
   8   │ [Service]
   9   │ Delegate=true
  10   │ Type=exec
  11   │ KillMode=process
  12   │ Environment=LOGGING="--log-level=info"
  13   │ ExecStart=podman $LOGGING system service
  14   │ 
  15   │ [Install]
  16   │ WantedBy=default.target

hm, I guess systemd user expects another path?

systemd-analyze --user verify podman.service
podman.service: Failed to open /home/m/.config/systemd/user/podman.service: No such file or directory
Unit podman.service not found.

For some reason there were 2 unit files in my home directory
/home/m/.config/systemd/user/podman.service
/home/m/.config/systemd/user/podman.socker
I don’t know why or what setting caused their creation

but after I deleted them, it finally works! :slight_smile: