Hello. I am trying to create a systemd service to start Vesktop once the computer connects to wifi. But when I try this, I just get an exit-code failure. What am I doing wrong?
systemd.user.services.vesktop = {
enable = true;
description = "Vesktop service";
after = [ "network-online.target" ];
serviceConfig = {
User = "user";
wantedBy = [ "network-online.target" ];
ExecStart = "vesktop %U --start-minimized";
Restart = "on-failure";
RestartSec = "5s";
};
};