forked from mirrors/nixpkgs
nixos/syncthing: run init only if devices or folders are set
This commit is contained in:
parent
444f22ca89
commit
87e9e65b6f
|
@ -421,7 +421,9 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
syncthing-init = {
|
syncthing-init = mkIf (
|
||||||
|
cfg.declarative.devices != {} || cfg.declarative.folders != {}
|
||||||
|
) {
|
||||||
after = [ "syncthing.service" ];
|
after = [ "syncthing.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue