From 939edb1873127bba1e7223e66c57209834996cc6 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Fri, 19 Dec 2014 08:25:23 +0200 Subject: [PATCH] synergy: restore autostart option. closes #5334 --- nixos/modules/services/misc/synergy.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/misc/synergy.nix b/nixos/modules/services/misc/synergy.nix index 271968f48b8a..2290bc532f53 100644 --- a/nixos/modules/services/misc/synergy.nix +++ b/nixos/modules/services/misc/synergy.nix @@ -86,7 +86,7 @@ in systemd.services."synergy-client" = { after = [ "network.target" ]; description = "Synergy client"; - wantedBy = [ "multi-user.target" ]; + wantedBy = optional cfgC.autoStart [ "multi-user.target" ]; path = [ pkgs.synergy ]; serviceConfig.ExecStart = ''${pkgs.synergy}/bin/synergyc -f ${optionalString (cfgC.screenName != "") "-n ${cfgC.screenName}"} ${cfgC.serverAddress}''; }; @@ -95,7 +95,7 @@ in systemd.services."synergy-server" = { after = [ "network.target" ]; description = "Synergy server"; - wantedBy = [ "multi-user.target" ]; + wantedBy = optional cfgS.autoStart [ "multi-user.target" ]; path = [ pkgs.synergy ]; serviceConfig.ExecStart = ''${pkgs.synergy}/bin/synergys -c ${cfgS.configFile} -f ${optionalString (cfgS.address != "") "-a ${cfgS.address}"} ${optionalString (cfgS.screenName != "") "-n ${cfgS.screenName}" }''; };