diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index a8e6b0fcf6fb..688f46c4492a 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -24,7 +24,9 @@ let else device ) folder.devices; - }) cfg.settings.folders; + }) (filterAttrs (_: folder: + folder.enable + ) cfg.settings.folders); updateConfig = pkgs.writers.writeDash "merge-syncthing-config" '' set -efu