Merge pull request #17271 from jokogr/fix/syncthing-system-service

syncthing: fix system service

authored by Joachim F and committed by GitHub ad127bb5 45c2c817

+3 -2
+3 -2
nixos/modules/services/networking/syncthing.nix
··· 114 114 115 115 environment.systemPackages = [ cfg.package ]; 116 116 117 - systemd.services.syncthing = mkIf cfg.systemService 118 - header // { 117 + systemd.services = mkIf cfg.systemService { 118 + syncthing = header // { 119 119 wantedBy = [ "multi-user.target" ]; 120 120 serviceConfig = service // { 121 121 User = cfg.user; ··· 124 124 ExecStart = "${cfg.package}/bin/syncthing -no-browser -home=${cfg.dataDir}"; 125 125 }; 126 126 }; 127 + }; 127 128 128 129 systemd.user.services.syncthing = 129 130 header // {