51 lines
1.6 KiB
Nix
Raw Normal View History

2023-10-13 21:01:14 -07:00
{ config, lib, pkgs, user, ... }:
{
2023-11-09 16:12:34 -08:00
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
environment.systemPackages = with pkgs; [
syncthing # File sync program for multiple devices in real-time.
];
2023-11-09 16:12:34 -08:00
2023-10-13 21:01:14 -07:00
services.syncthing = {
enable = true;
user = "${user}";
2023-12-18 20:04:24 -08:00
dataDir = "/home/${user}/.local/share/syncthing";
2023-10-13 21:01:14 -07:00
configDir = "/home/${user}/.config/syncthing";
2023-11-09 16:12:34 -08:00
guiAddress = "0.0.0.0:8384";
2023-10-13 21:01:14 -07:00
overrideDevices = true;
overrideFolders = true;
settings.devices = {
"bulwark" = { id = "ZGLQ725-OJSDNTE-MXYLIUD-XDB7REJ-2B2DVNU-PAFF6VC-MUUWRI6-4SNPWAK"; };
2023-11-09 16:12:34 -08:00
"torus" = { id = "WCZYHD7-5Y33SSU-74JHAQR-V7LYMDM-SDG2NTN-DJ2VKF2-DUBBUE5-PU5CGQN"; };
"shivan" = { id = "KUSOQSH-RKLLA32-T3KAPQP-VNJISLL-QSQCGFZ-ZL7ZULE-MJC67DK-2U6G4Q7"; };
2023-10-13 21:01:14 -07:00
};
settings.folders = {
2023-10-13 21:01:14 -07:00
"Gamecube Saves" = {
path = "/home/${user}/.local/share/dolphin-emu/GC";
devices = [ "bulwark" ];
};
2024-08-16 18:44:46 -07:00
"Ryujinx Saves" = {
path = "/home/${user}/.config/Ryujinx/bis";
devices = [ "bulwark" ];
};
"Yuzu Saves" = {
2023-10-13 21:01:14 -07:00
path = "/home/${user}/.local/share/yuzu/nand/user/save/0000000000000000/705C6CE0127692D598F92E68B640D644";
devices = [ "bulwark" ];
};
"PSP Saves" = {
path = "/home/${user}/.config/ppsspp/PSP/SAVEDATA";
devices = [ "bulwark" ];
};
2023-11-15 22:16:56 -08:00
"PSP Save States" = {
2023-11-15 22:13:24 -08:00
path = "/home/${user}/.config/ppsspp/PSP/PPSSPP_STATE";
devices = [ "bulwark" ];
};
"General Sync" = {
path = "/home/${user}/sync";
devices = [ "shivan" ];
};
2023-10-13 21:01:14 -07:00
};
};
}