diff --git a/roles/gaming/programs/retroarch.nix b/roles/gaming/programs/retroarch.nix index 83ab80a..e247954 100644 --- a/roles/gaming/programs/retroarch.nix +++ b/roles/gaming/programs/retroarch.nix @@ -42,5 +42,28 @@ in }; }; }; + # Add a syncthing ignore file to the retroarch folder + xdg.configFile."retroarch-stignore" = { + target = "retroarch/.stignore"; + text = '' + !saves + !states + !database + !playlists + + // Ignore everything except stuff above + * + ''; + }; + }; + + # Sync saves and some other stuff + services.syncthing.settings.folders = { + "retroarch" = { + label = "RetroArch"; + id = "jxuou-2yjnu"; + devices = [ "steamdeck" "pc" ]; + path = "~/.config/retroarch"; + }; }; }