New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
services.synergy: Use graphical target (fixes #9468) #40747
Conversation
path = [ pkgs.synergy ]; | ||
serviceConfig.ExecStart = ''${pkgs.synergy}/bin/synergyc -f ${optionalString (cfgC.screenName != "") "-n ${cfgC.screenName}"} ${cfgC.serverAddress}''; | ||
serviceConfig.Restart = "on-failure"; | ||
}; | ||
}) | ||
(mkIf cfgS.enable { | ||
systemd.services."synergy-server" = { | ||
after = [ "network.target" ]; | ||
systemd.user.services."synergy-server" = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the server really need X11 for it to work?
Also, these services run in the user systemd session with this change, can this change behaviour? Is this intended like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is all necessary, per #9468
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just tested this on NixOS and it works 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright then :D
Oh one more thing: Can you change the commit message to use the |
@WhittlesJr can you fix the commit message? |
f3592f1
to
9a63f51
Compare
Arg, sorry about that. |
Motivation for this change
Synergy client would not auto-start, because it tried to come up before there was a graphical target.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)