From 05c23802bb30f522b229dae762e0ed78979e84a8 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Fri, 4 Dec 2009 12:50:49 +0000 Subject: [PATCH] Fix synergy client. * Add serverAddress option. * Evaluate the client daemon in foreground, otherwise upstart get the hand and tries to restart it. svn path=/nixos/trunk/; revision=18799 --- modules/services/misc/synergy.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/services/misc/synergy.nix b/modules/services/misc/synergy.nix index 96616fa7a733..5d21e281b757 100644 --- a/modules/services/misc/synergy.nix +++ b/modules/services/misc/synergy.nix @@ -32,6 +32,13 @@ in ourselfs to the server. "; }; + serverAddress = mkOption { + description = " + The server address is of the form: [hostname][:port]. The + hostname must be the address or hostname of the server. The + port overrides the default port, 24800. + "; + }; }; server = { @@ -79,7 +86,10 @@ in startOn = "started network-interfaces"; stopOn = "stopping network-interfaces"; - exec = "${pkgs.synergy}/bin/synergyc ${if cfgS.screenName == "" then "" else "-n ${cfgS.screenName}" }"; + exec = ''${pkgs.synergy}/bin/synergyc \ + -f ${if cfgC.screenName == "" then "" else "-n ${cfgC.screenName}"} \ + ${cfgC.serverAddress} + ''; }; }