summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJoachim F <joachifm@users.noreply.github.com>2016-07-27 03:23:08 +0200
committerGitHub <noreply@github.com>2016-07-27 03:23:08 +0200
commitad127bb55d23cb7450c111ce8bc29c76097faf2c (patch)
tree21ae9e2ece49aa7ce43697ca60c9c2dd4b107319 /nixos
parent45c2c817d5dbe92b3abfeb14f0ff7ce773df73e2 (diff)
parent24968fc1c1fb6fe05caaebf162cdc2e810239f26 (diff)
downloadnixlib-ad127bb55d23cb7450c111ce8bc29c76097faf2c.tar
nixlib-ad127bb55d23cb7450c111ce8bc29c76097faf2c.tar.gz
nixlib-ad127bb55d23cb7450c111ce8bc29c76097faf2c.tar.bz2
nixlib-ad127bb55d23cb7450c111ce8bc29c76097faf2c.tar.lz
nixlib-ad127bb55d23cb7450c111ce8bc29c76097faf2c.tar.xz
nixlib-ad127bb55d23cb7450c111ce8bc29c76097faf2c.tar.zst
nixlib-ad127bb55d23cb7450c111ce8bc29c76097faf2c.zip
Merge pull request #17271 from jokogr/fix/syncthing-system-service
syncthing: fix system service
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/syncthing.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix
index 98f4faabba26..b44b03dc0bf3 100644
--- a/nixos/modules/services/networking/syncthing.nix
+++ b/nixos/modules/services/networking/syncthing.nix
@@ -114,8 +114,8 @@ in
 
     environment.systemPackages = [ cfg.package ];
 
-    systemd.services.syncthing = mkIf cfg.systemService
-      header // {
+    systemd.services = mkIf cfg.systemService {
+      syncthing = header // {
         wantedBy = [ "multi-user.target" ];
         serviceConfig = service // {
           User = cfg.user;
@@ -124,6 +124,7 @@ in
           ExecStart = "${cfg.package}/bin/syncthing -no-browser -home=${cfg.dataDir}";
         };
       };
+    };
 
     systemd.user.services.syncthing =
       header // {