anchor.diff:              port overrides the default port, 24800.
             ";
           };
  +        autoStart = mkOption {
  +          default = true;
  +          type = types.bool;
  +          description = "Whether synergy-client should be started automatically.";
  +        };
         };
   
         server = {
  
positive.code: 
    config = {
  
      jobs =
  
        optionalAttrs cfgC.enable
          { synergyClient =
            { name = "synergy-client";
  
              description = "Synergy client";
  
              startOn = "started network-interfaces";
              stopOn = "stopping network-interfaces";
  
              exec = ''${pkgs.synergy}/bin/synergyc \
                -f ${if cfgC.screenName == "" then "" else "-n ${cfgC.screenName}"} \
                ${cfgC.serverAddress}
              '';
            };
          }
  
        // optionalAttrs cfgS.enable
          { synergyServer =
            { name = "synergy-server";
  
              description = "Synergy server";
  
              startOn = "started network-interfaces";
              stopOn = "stopping network-interfaces";
  
              exec =
                ''
                  ${pkgs.synergy}/bin/synergys -c ${cfgS.configFile} \
                    -f ${if cfgS.address == "" then "" else "-a ${cfgS.address}"} \
                    ${if cfgS.screenName == "" then "" else "-n ${cfgS.screenName}" }
                '';
            };
          };
  
    };
  
  
negative.code:           default = "";
            description = "listen for clients on the given address";
          };
          autoStart = mkOption {
            default = true;
            type = types.bool;
            description = "Whether synergy-server should be started automatically.";
          };
        };
      };
  
  