From b924128f7c4445abca1b28bacb4a5ec0c72e5c93 Mon Sep 17 00:00:00 2001 From: Toast Date: Sun, 31 Dec 2023 01:46:40 +0100 Subject: [PATCH] Gaming/retroarch: sync retroarch folder with syncthing --- roles/gaming/programs/retroarch.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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"; + }; }; }