Skip to content

Commit

Permalink
Merge pull request #62157 from Lassulus/syncthing-fix
Browse files Browse the repository at this point in the history
nixos/syncthing: run init only if a devices or folders are set
  • Loading branch information
matthewbauer authored May 30, 2019
2 parents f306e09 + 87e9e65 commit 0a2b971
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/modules/services/networking/syncthing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ in {
'';
};
};
syncthing-init = {
syncthing-init = mkIf (
cfg.declarative.devices != {} || cfg.declarative.folders != {}
) {
after = [ "syncthing.service" ];
wantedBy = [ "multi-user.target" ];

Expand Down

0 comments on commit 0a2b971

Please sign in to comment.