From 53e50d04617d65a582f76b0ee6d28b5bae7815b9 Mon Sep 17 00:00:00 2001 From: 4DBug <4DBug@github.com> Date: Thu, 29 Jan 2026 00:21:13 -0600 Subject: [PATCH] push --- main.nix | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/main.nix b/main.nix index 142e411..69bc99c 100644 --- a/main.nix +++ b/main.nix @@ -281,12 +281,39 @@ in syncthing = { enable = true; - user = "bug"; - + key = "~/.syncthing/key.pem"; + cert = "~/.syncthing/cert.pem"; + extraFlags = [ "--no-default-folder" ]; openDefaultPorts = true; - overrideFolders = false; + + overrideFolders = true; + + settings = { + devices = if desktop then { + "laptop" = { id = "C33XSW3-CUN7QOD-PK2SM37-MJCXNGA-K3UGTDR-TW53FZ7-BE7EWDC-QWVUXQ5"; }; + } else { + "desktop" = { id = "I664COC-GCOH2HX-KCVLP3R-R62LVPV-3W32DVQ-UMMBMDB-55MMIPH-OV54AAP"; }; + }; + + folders = { + "nix" = { + path = "/home/bug/nix"; + devices = if desktop then [ "laptop" ] else [ "desktop" ]; + }; + + "Documents" = { + path = "/home/bug/Documents"; + devices = if desktop then [ "laptop" ] else [ "desktop" ]; + }; + + "Downloads" = { + path = "/home/bug/Downloads"; + devices = if desktop then [ "laptop" ] else [ "desktop" ]; + }; + }; + }; }; flatpak = {