Systemd user services and sddm

I just set up a systemd user service for syncthing. After reboot I was very surprised to see two instances running: One for sddm and one for my user.
Is there any way to prevent sddm from running this user service?

1 Like

My workaround so far:

      ExecStartPre = pkgs.writeScript "check-user" ''
        #!${pkgs.stdenv.shell}
        set -euo pipefail
        [ "$(id -un)" != "sddm" ]
        '';

The proper way:

systemd.services.syncthing.unitConfig.ConditionUser = “!@system”;

2 Likes