Commit 1bdc77a0c3bc
Changed files (1)
home
common
services
home/common/services/syncthing.nix
@@ -2,10 +2,18 @@
globals,
hostname,
libx,
+ lib,
...
}:
+let
+ folders =
+ libx.generateSyncthingFolders hostname globals.machines."${hostname}" globals.machines
+ globals.syncthingFolders;
+ folderNames = lib.mapAttrsToList (id: folder: folder.label or id) folders;
+ folderList = lib.concatStringsSep ", " folderNames;
+in
{
- warnings = [ "Home syncthing for ${hostname}" ];
+ warnings = [ "Home syncthing for ${hostname} with folders: ${folderList}" ];
services.syncthing = {
enable = true;
overrideFolders = false; # Just in case, will probably set to true later
@@ -16,9 +24,7 @@
# ignores = { lines = [ "(?d).DS_Store" "**" ]; };
# };
devices = libx.generateSyncthingDevices hostname globals.machines;
- folders =
- libx.generateSyncthingFolders hostname globals.machines."${hostname}" globals.machines
- globals.syncthingFolders;
+ folders = folders;
};
};
}