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
commit 0a2b9719fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" ];