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