Nextcloud - tienducle/steam-deck-stuff GitHub Wiki
Steam offers great features like Cloud Saves and Mod Management via Steam Workshop, however there are some use-cases where a custom sync setup is still needed. In this example, a Nextcloud instance will be used.
Set up synced scripts folder
Install Nextcloud
- Switch to Desktop Mode
- Open Discover
- Search for Nextcloud and install it
- We don't need to run it, since we'll use nextcloudcmd in our scripts
Set up Nextcloud credentials
- Assuming everyone is using MFA, we need to create an app password in the Nextcloud instance under Settings -> Security
- Open the terminal and execute
nano nextcloud-credentials.sh
- Paste the following snippet and replace the values appropiately
#!/bin/bash
export NC_USER=""
export NC_APP_PASSWORD=""
export NC_SERVER_URL="https://some.nextcloud.instance"
- Press
Ctrl+X
andY
to save and close the file - Execute
chmod +x nextcloud-credentials.sh
to make the file executable
Set up Steam Deck folders in Nextcloud
- Create a folder
steamdeck
in the root folder in Nextcloud - Under the new
steamdeck
folder, create ascripts
folder
Initial sync
- Execute
mkdir -p ~/scripts
- Execute
nano ~/scripts/scripts-sync.sh
- Paste the following snippet
#!/bin/bash
source ~/nextcloud-credentials.sh
mkdir -p ~/scripts
flatpak run --command=nextcloudcmd com.nextcloud.desktopclient.nextcloud \
--path "/steamdeck/scripts" \
-u "${NC_USER}" \
-p "${NC_APP_PASSWORD}" \
"/home/deck/scripts" \
"${NC_SERVER_URL}"
- Press
Ctrl+X
andY
to save and close the file - Execute
chmod +x ~/scripts/scripts-sync.sh
to make the file executable - Execute
./scripts/scripts-sync.sh
and check if the file is synced to Nextcloud - The scripts folder will be used to have all sync scripts in a handy place
Sync Stardew Valley Mods
Keep Stardew Valley installed mods in sync on multiple devices.
Note: SMAPI is not synced and needs to be updated individually on each device.
Set up folders in Nextcloud
- Create
/steamdeck/Stardew Valley/Mods
folder structure on Nextcloud - Execute
nano ~/scripts/stardew-sync.sh
- Paste the following snippet
#!/bin/bash
source ~/nextcloud-credentials.sh
mkdir -p "/run/media/mmcblk0p1/steamapps/common/Stardew Valley/Mods"
flatpak run --command=nextcloudcmd com.nextcloud.desktopclient.nextcloud \
--path "/steamdeck/Stardew Valley/Mods" \
-u "${NC_USER}" \
-p "${NC_APP_PASSWORD}" \
"/run/media/mmcblk0p1/steamapps/common/Stardew Valley/Mods" \
"${NC_SERVER_URL}"
- If the game is installed on internal SSD, change the paths accordingly
- Press
Ctrl+X
andY
to save and close the file - Execute
chmod +x ~/scripts/stardew-sync.sh
to make the file executable
Sync Sims 4 saves
WIP