nixos/syncthing: run init only if devices or folders are set

This commit is contained in:
lassulus 2019-05-28 15:38:10 +02:00
parent 444f22ca89
commit 87e9e65b6f

View file

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