summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorIoannis Koutras <ioannis.koutras@gmail.com>2016-07-26 13:10:15 +0300
committerIoannis Koutras <ioannis.koutras@gmail.com>2016-07-26 13:10:15 +0300
commit24968fc1c1fb6fe05caaebf162cdc2e810239f26 (patch)
tree71aa9ae96f9b21ee6f4ff75139567ac7652fbc65 /nixos
parent62d11a6961fdae096de947f4971d078159f7b218 (diff)
downloadnixlib-24968fc1c1fb6fe05caaebf162cdc2e810239f26.tar
nixlib-24968fc1c1fb6fe05caaebf162cdc2e810239f26.tar.gz
nixlib-24968fc1c1fb6fe05caaebf162cdc2e810239f26.tar.bz2
nixlib-24968fc1c1fb6fe05caaebf162cdc2e810239f26.tar.lz
nixlib-24968fc1c1fb6fe05caaebf162cdc2e810239f26.tar.xz
nixlib-24968fc1c1fb6fe05caaebf162cdc2e810239f26.tar.zst
nixlib-24968fc1c1fb6fe05caaebf162cdc2e810239f26.zip
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 // {