Gaming: configure syncthiing

This commit is contained in:
Toast 2023-10-03 01:39:13 +02:00
parent ca7dd48db3
commit 5fc18d212f
3 changed files with 30 additions and 1 deletions

View file

@ -1,5 +1,7 @@
{ ... }: { ... }:
{ {
imports = [
./syncthing.nix
];
} }

View file

@ -0,0 +1,21 @@
{ config, ... }:
{
/*
This file will sync saves for games that don't have cloud saves
TODO: turn this into a module eventually
*/
services.syncthing.folders = {
"steam-201810" = {
label = "Wolfenstein The New Order Saves";
id = "laxxf-t2wmy";
devices = [ "steamdeck" "server" "pc" ];
path = "~/.local/share/Steam/steamapps/compatdata/201810/pfx/drive_c/users/steamuser/Saved Games/MachineGames/Wolfenstein The New Order/";
};
};
home-manager.users.toast.home.file."steam-201810-ignore" = {
target = ".local/share/Steam/steamapps/compatdata/201810/pfx/drive_c/users/steamuser/Saved Games/MachineGames/Wolfenstein The New Order/.stignore";
text = "base/qconsole.log\nbase/wolfConfig.cfg";
};
}

View file

@ -21,6 +21,12 @@
devices = [ "steamdeck" "server" ]; devices = [ "steamdeck" "server" ];
path = "${config.services.syncthing.dataDir}/school-things"; path = "${config.services.syncthing.dataDir}/school-things";
}; };
"steam-201810" = {
label = "Wolfenstein The New Order Saves";
id = "laxxf-t2wmy";
devices = [ "steamdeck" "server" "pc" ];
path = "${config.services.syncthing.dataDir}/steam-201810";
};
}; };
}; };
systemd.services.syncthing.serviceConfig = { systemd.services.syncthing.serviceConfig = {