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.
