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 ];
|
|
|
|
|
2023-10-13 21:01:14 -07:00
|
|
|
environment.systemPackages = with pkgs; [ syncthing ];
|
2023-11-09 16:12:34 -08:00
|
|
|
|
2023-10-13 21:01:14 -07:00
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
user = "${user}";
|
|
|
|
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;
|
|
|
|
devices = {
|
|
|
|
"bulwark" = { id = "B5HZK2V-WA4WSQF-3JAIH4I-C6XQZ6J-EMMAIV5-CCYOA5G-N57GT6A-WH2GCQ2"; };
|
2023-11-09 16:12:34 -08:00
|
|
|
"torus" = { id = "WCZYHD7-5Y33SSU-74JHAQR-V7LYMDM-SDG2NTN-DJ2VKF2-DUBBUE5-PU5CGQN"; };
|
2023-10-13 21:01:14 -07:00
|
|
|
};
|
|
|
|
folders = {
|
|
|
|
"Gamecube Saves" = {
|
|
|
|
path = "/home/${user}/.local/share/dolphin-emu/GC";
|
|
|
|
devices = [ "bulwark" ];
|
|
|
|
};
|
|
|
|
"Switch Saves" = {
|
|
|
|
path = "/home/${user}/.local/share/yuzu/nand/user/save/0000000000000000/705C6CE0127692D598F92E68B640D644";
|
|
|
|
devices = [ "bulwark" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|