nixos/incus: avoid restart on switch for incus-startup

This service exists to avoid extra instance restarts. While its dependencies
are slim, there are still some, so disable restartIfChanged to avoid any
switches from affecting instances.
This commit is contained in:
Adam C. Stephens
2025-09-20 16:03:17 -04:00
parent e3e7ad4d93
commit 886fdecdc4

View File

@@ -449,6 +449,9 @@ in
requires = [ "incus.socket" ]; requires = [ "incus.socket" ];
wantedBy = config.systemd.services.incus.wantedBy; wantedBy = config.systemd.services.incus.wantedBy;
# restarting this service will affect instances
restartIfChanged = false;
serviceConfig = { serviceConfig = {
ExecStart = "${incus-startup} start"; ExecStart = "${incus-startup} start";
ExecStop = "${incus-startup} stop"; ExecStop = "${incus-startup} stop";