mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
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" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user