From e55baa8231125379791399377befa52aa51128b3 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Fri, 2 Oct 2026 22:12:32 +1000 Subject: [PATCH] tweak: syncthing options --- .../connectivity/{syncthing.nix => sync.nix} | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) rename modules/features/connectivity/{syncthing.nix => sync.nix} (61%) diff --git a/modules/features/connectivity/syncthing.nix b/modules/features/connectivity/sync.nix similarity index 61% rename from modules/features/connectivity/syncthing.nix rename to modules/features/connectivity/sync.nix index 42cdad5..778d93b 100644 --- a/modules/features/connectivity/syncthing.nix +++ b/modules/features/connectivity/sync.nix @@ -25,14 +25,6 @@ services.syncthing = { enable = true; openDefaultPorts = true; - - # address to serve web client on - #guiAddress = "0.0.0.0:8384"; - #settings = { - #options = {}; - #devices = []; - #folders = []; - #}; }; # user level configuration options @@ -43,7 +35,8 @@ # syncthing packages to include home.packages = with pkgs; [ - syncthing + syncthing # syncthing package + git-sync # for sync version control ]; # user level syncthing options go here @@ -52,6 +45,26 @@ guiAddress = "127.0.0.1:8384"; }; + # sync version control + services.git-sync = { + enable = true; + + # obsidian notes vault lives here + repositories.notes = { + path = "${user-parts.user.home-directory}/Sync/Notes/"; + uri = "git@codeberg.org:${user-parts.git.username}/Notes.git"; + interval = 1000; + }; + + # password kbdx file lives here + repositories.keyring = { + path = "${user-parts.user.home-directory}/Sync/Keyring"; + uri = "git@codeberg.org:${user-parts.git.username}/Keyring"; + interval = 1000; + }; + + }; + }; };