diff options
Diffstat (limited to 'os/srv/syncthing.nix')
| -rw-r--r-- | os/srv/syncthing.nix | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/os/srv/syncthing.nix b/os/srv/syncthing.nix index 2234b88..28806f1 100644 --- a/os/srv/syncthing.nix +++ b/os/srv/syncthing.nix @@ -24,6 +24,40 @@ in devices."oci".id = "DQXGVDC-KGPM6RK-5NDEBJJ-R7PEWYZ-N6Z3WFZ-TSVJG5X-235SHG4-4BEJNQJ"; folders = { + "openmw-config" = { + path = "/home/${username}/.config/openmw"; + id = "openmw-config"; + devices = [ + { + name = "oci"; + encryptionPasswordFile = config.sops.secrets."syncthing/encryption/openmw-config".path; + } + ]; + versioning = { + type = "simple"; + params.keep = "3"; + }; + ignorePatterns = [ + "settings.cfg" + "*.log" + ]; + }; + + "openmw-mods" = { + path = "/home/${username}/games/openmw"; + id = "openmw-mods"; + devices = [ + { + name = "oci"; + encryptionPasswordFile = config.sops.secrets."syncthing/encryption/openmw-mods".path; + } + ]; + versioning = { + type = "trashcan"; + params.cleanoutDays = "7"; + }; + }; + "game-saves" = { path = "/home/${username}/.saves"; id = "game-saves"; @@ -31,7 +65,6 @@ in { name = "oci"; encryptionPasswordFile = config.sops.secrets."syncthing/encryption/game-saves".path; - compression = "always"; } ]; versioning = { @@ -50,7 +83,6 @@ in { name = "oci"; encryptionPasswordFile = config.sops.secrets."syncthing/encryption/keepass".path; - compression = "metadata"; } ]; versioning = { @@ -66,7 +98,6 @@ in { name = "oci"; encryptionPasswordFile = config.sops.secrets."syncthing/encryption/sync".path; - compression = "metadata"; } ]; versioning = { |
