Merge pull request #62157 from Lassulus/syncthing-fix

nixos/syncthing: run init only if a devices or folders are set
This commit is contained in:
Matthew Bauer
2019-05-29 21:02:18 -04:00
committed by GitHub

View File

@@ -426,7 +426,9 @@ in {
'';
};
};
syncthing-init = {
syncthing-init = mkIf (
cfg.declarative.devices != {} || cfg.declarative.folders != {}
) {
after = [ "syncthing.service" ];
wantedBy = [ "multi-user.target" ];