Gaming/retroarch: bring back syncthing

This commit is contained in:
Toast 2024-01-03 19:54:12 +01:00
parent bafe0953a1
commit 69afd4bdab

View file

@ -74,30 +74,15 @@ in
}; };
# Retroarch is dumb since it doesn't generate this folder (but it does for others) # Retroarch is dumb since it doesn't generate this folder (but it does for others)
systemd.user.tmpfiles.rules = [ "d /%h/.local/share/retroarch/playlists" ]; systemd.user.tmpfiles.rules = [ "d /%h/.local/share/retroarch/playlists" ];
# Add a syncthing ignore file to the retroarch folder
xdg.configFile."retroarch-stignore" = {
enable = false;
target = "retroarch/.stignore";
text = ''
!saves
!states
!database
!playlists
// Ignore everything except stuff above
*
'';
};
}; };
# Sync saves and some other stuff # Sync saves and some other stuff
services.syncthing.settings.folders = { services.syncthing.settings.folders = {
"retroarch" = { "retroarch" = {
enable = false;
label = "RetroArch"; label = "RetroArch";
id = "jxuou-2yjnu"; id = "jxuou-2yjnu";
devices = [ "steamdeck" "pc" ]; devices = [ "steamdeck" "pc" ];
path = "~/.config/retroarch"; path = "~/.local/share/retroarch";
}; };
}; };
} }