Skip to content

Commit

Permalink
nixos/syncthing: run init only if devices or folders are set
Browse files Browse the repository at this point in the history
  • Loading branch information
Lassulus committed May 29, 2019
1 parent 444f22c commit 87e9e65
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 @@ -421,7 +421,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 87e9e65

Please sign in to comment.