mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #62157 from Lassulus/syncthing-fix
nixos/syncthing: run init only if a devices or folders are set
This commit is contained in:
commit
0a2b9719fd
@ -426,7 +426,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