From 8c2a444b44096033a278313d478615219286a8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20H=C3=A9mono?= Date: Thu, 1 May 2025 11:14:02 +0200 Subject: [PATCH] Syncthing on sesame --- hosts/sesame/configuration.nix | 1 + hosts/sesame/syncthing.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 hosts/sesame/syncthing.nix diff --git a/hosts/sesame/configuration.nix b/hosts/sesame/configuration.nix index e2567c1..a07cb7a 100644 --- a/hosts/sesame/configuration.nix +++ b/hosts/sesame/configuration.nix @@ -17,6 +17,7 @@ ./forgejo.nix ./transmission.nix ./lemorillon.nix + ./syncthing.nix ]; # Boot configuration diff --git a/hosts/sesame/syncthing.nix b/hosts/sesame/syncthing.nix new file mode 100644 index 0000000..65809c4 --- /dev/null +++ b/hosts/sesame/syncthing.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +{ + services.syncthing = { + enable = true; + openDefaultPorts = true; + settings.devices = { + "ONEPLUS A5010" = { + id = "XDBD7VO-R563TI5-DJ75F3W-6LGYD4R-BPVAID2-YEMATLF-C3TQD5M-3IGGBAW"; + autoAcceptFolders = true; + }; + "gwiad" = { + id = "PMFIG7X-CBRWO2U-MKUP5AT-SMJHICC-IXQQRPB-5JUF4GX-CIL7TFR-XWEMSQI"; + autoAcceptFolders = true; + }; + }; + }; +}