nixos: never restart podman-restart on a deploy
All checks were successful
nixos / nixos (push) Successful in 40s

Its stop step is `podman stop --all`. A deploy that changes the unit,
such as a Podman update, would restart it and so stop XMPP, running CI
jobs and every app, only to start them again. It does its work at boot;
leave it alone on a switch.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-17 08:31:51 +04:00
commit acf5260414
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -29,6 +29,10 @@
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ]; after = [ "network-online.target" ];
wants = [ "network-online.target" ]; wants = [ "network-online.target" ];
# Its stop step stops every container: a deploy that changes the unit
# (a Podman update) must not take XMPP, CI jobs and the apps down.
# It only matters at boot.
restartIfChanged = false;
}; };
environment.systemPackages = [ pkgs.docker-client ]; environment.systemPackages = [ pkgs.docker-client ];