Merge pull request #17271 from jokogr/fix/syncthing-system-service
syncthing: fix system service
commitad127bb55d23cb7450c111ce8bc29c76097faf2c
authorJoachim F <joachifm@users.noreply.github.com>
dateWed 27 Jul 2016, 03:23 (10 years ago)
parent45c2c8124968fc
nixos/modules/services/networking/syncthing.nix+3−2
@@ -114,8 +114,8 @@ in
114114
115115 environment.systemPackages = [ cfg.package ];
116116
117− systemd.services.syncthing = mkIf cfg.systemService
118− header // {
117+ systemd.services = mkIf cfg.systemService {
118+ syncthing = header // {
119119 wantedBy = [ "multi-user.target" ];
120120 serviceConfig = service // {
121121 User = cfg.user;
@@ -124,6 +124,7 @@ in
124124 ExecStart = "${cfg.package}/bin/syncthing -no-browser -home=${cfg.dataDir}";
125125 };
126126 };
127+ };
127128
128129 systemd.user.services.syncthing =
129130 header // {