nixos/incus: fix incus containers being wrongly restarted on package update whilst softDaemonRestart is set (#539440)

This commit is contained in:
Adam C. Stephens
2026-07-08 10:39:24 +00:00
committed by GitHub
+3
View File
@@ -446,6 +446,8 @@ in
]
++ lib.optionals (cfg.useACMEHost != null) [ "acme-${cfg.useACMEHost}.service" ];
stopIfChanged = lib.mkIf cfg.softDaemonRestart false;
serviceConfig = {
ExecStart = "${cfg.package}/bin/incusd --group incus-admin";
ExecStartPost = "${cfg.package}/bin/incusd waitready --timeout=${cfg.startTimeout}";
@@ -504,6 +506,7 @@ in
# restarting this service will affect instances
restartIfChanged = false;
stopIfChanged = false;
serviceConfig = {
ExecStart = "${incus-startup} start";