summary refs log tree commit diff
path: root/nixos/modules/services/misc/synergy.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-12-24 12:35:57 +0100
committeraszlig <aszlig@redmoonstudios.org>2014-12-24 12:35:57 +0100
commitc7e3ddf7ff099c0eb3561409f44e949cf16af591 (patch)
tree811f096dadf2d19096394a25794689130d00fbfb /nixos/modules/services/misc/synergy.nix
parent1a79e7ffdc8733e8598b60df10846ded8a0992b7 (diff)
downloadnixpkgs-c7e3ddf7ff099c0eb3561409f44e949cf16af591.tar
nixpkgs-c7e3ddf7ff099c0eb3561409f44e949cf16af591.tar.gz
nixpkgs-c7e3ddf7ff099c0eb3561409f44e949cf16af591.tar.bz2
nixpkgs-c7e3ddf7ff099c0eb3561409f44e949cf16af591.tar.lz
nixpkgs-c7e3ddf7ff099c0eb3561409f44e949cf16af591.tar.xz
nixpkgs-c7e3ddf7ff099c0eb3561409f44e949cf16af591.tar.zst
nixpkgs-c7e3ddf7ff099c0eb3561409f44e949cf16af591.zip
nixos/synergy: Fix use of the "optional" function.
Commit 939edb1 reintroduced autoStart, but instead of creating a list of
units for the wantedBy list with optional it became a list of lists of
units.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/modules/services/misc/synergy.nix')
-rw-r--r--nixos/modules/services/misc/synergy.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/synergy.nix b/nixos/modules/services/misc/synergy.nix
index 2290bc532f5..054df965347 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 = optional cfgC.autoStart [ "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 = optional cfgS.autoStart [ "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}" }'';
       };