Unverified Commit 886fdecd authored by Adam C. Stephens's avatar Adam C. Stephens
Browse files

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.
parent e3e7ad4d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -449,6 +449,9 @@ in
      requires = [ "incus.socket" ];
      wantedBy = config.systemd.services.incus.wantedBy;

      # restarting this service will affect instances
      restartIfChanged = false;

      serviceConfig = {
        ExecStart = "${incus-startup} start";
        ExecStop = "${incus-startup} stop";