0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

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" ]; after = [ "syncthing.service" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];