nix/nixos/common/services/syncthing-desktop.nix

62 lines
2 KiB
Nix

{ username, ... }:
let
# Game saves and configurations:
devices_games = [
"framework16"
"framework13"
"nixos-desktop"
];
# All other desktop-related shares:
devices_all = [
"framework16"
"framework13"
"nixos-desktop"
"rdesktop-nuc-server"
"rdesktop-warsaw-ovh-01"
"rdesktop-framework-server"
];
in {
services.syncthing = {
settings = {
folders = {
"kenshi-saves" = {
id = "kenshi";
path = "/home/${username}/.steam/steam/steamapps/compatdata/233860/pfx/drive_c/users/steamuser/AppData/Local/kenshi/";
devices = devices_games;
};
# WoW Addons
"wow-classic-addons" = {
id = "wow-classic-addons";
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_classic_/Interface/";
devices = devices_games;
};
"wow-cata-addons" = {
id = "wow-cata-addons";
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_classic_era_/Interface/";
devices = devices_games;
};
"wow-retail-addons" = {
id = "wow-retail-addons";
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_retail_/Interface/";
devices = devices_games;
};
# WoW WTF
"wow-classic-wtf" = {
id = "wow-classic-wtf";
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_classic_/WTF/";
devices = devices_games;
};
"wow-cata-wtf" = {
id = "wow-cata-wtf";
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_classic_era_/WTF/";
devices = devices_games;
};
"wow-retail-wtf" = {
id = "wow-retail-wtf";
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/_retail_/WTF/";
devices = devices_games;
};
};
};
};
}