Gaming: configure syncthiing
This commit is contained in:
parent
ca7dd48db3
commit
5fc18d212f
3 changed files with 30 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
./syncthing.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
21
roles/gaming/services/syncthing.nix
Normal file
21
roles/gaming/services/syncthing.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
|
|
@ -21,6 +21,12 @@
|
|||
devices = [ "steamdeck" "server" ];
|
||||
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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue