From acf5260414443617f38f8034fed72e0ac0291663 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 17 Nov 2026 08:31:51 +0400 Subject: [PATCH] nixos: never restart podman-restart on a deploy 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 --- nixos/modules/podman.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/podman.nix b/nixos/modules/podman.nix index e06e763..db7313d 100644 --- a/nixos/modules/podman.nix +++ b/nixos/modules/podman.nix @@ -29,6 +29,10 @@ wantedBy = [ "multi-user.target" ]; after = [ "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 ];