Remove syncthing migration script

This commit is contained in:
Yan Lin 2025-08-18 20:21:13 +09:00
parent 6e154b7299
commit f76359a615
2 changed files with 17 additions and 19 deletions

View file

@ -7,23 +7,4 @@
# Don't enable tray on macOS as it requires additional setup
tray.enable = false;
};
# Copy existing Syncthing configuration to preserve device ID and settings
home.activation.syncthingConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
# Create syncthing config directory if it doesn't exist
mkdir -p "$HOME/.config/syncthing"
# Copy configuration from macOS location if not already present
if [ ! -e "$HOME/.config/syncthing/config.xml" ]; then
echo "Migrating Syncthing configuration from macOS location..."
if [ -d "$HOME/Library/Application Support/Syncthing" ]; then
cp -r "$HOME/Library/Application Support/Syncthing/"* "$HOME/.config/syncthing/"
echo "Syncthing configuration migrated successfully!"
else
echo "Warning: No existing Syncthing configuration found to migrate"
fi
else
echo "Syncthing configuration already exists at ~/.config/syncthing"
fi
'';
}