From fdc269483ea48a2cda2f9bd66291e7b8876775e5 Mon Sep 17 00:00:00 2001 From: Jelle Spreeuwenberg Date: Tue, 5 May 2026 16:28:49 +0200 Subject: [PATCH] feat: add phone to syncthing --- modules/capabilities/syncthing.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/modules/capabilities/syncthing.nix b/modules/capabilities/syncthing.nix index 76b5420..81a0a74 100644 --- a/modules/capabilities/syncthing.nix +++ b/modules/capabilities/syncthing.nix @@ -4,7 +4,7 @@ ... }: let - syncthingMesh = lib.listToAttrs ( + syncMachines = lib.listToAttrs ( lib.concatMap ( machine: lib.optional (machine.syncthingId != null) ( @@ -21,6 +21,15 @@ let ) ) (builtins.attrValues config.repo.machines) ); + + syncPhones = { + "pixel-10" = { + name = "pixel-10"; + id = "MTJHEHA-UMZDQZ7-BTMRRLQ-Y7BFPUJ-ZTY6LZX-PDXV3IS-XVJCU7B-EPETBQZ"; + }; + }; + + syncDevices = syncMachines // syncPhones; in { flake.modules.homeManager.syncthing = @@ -37,15 +46,15 @@ in sync = { path = "~/sync"; label = "sync"; - devices = builtins.attrNames syncthingMesh; + devices = builtins.attrNames syncDevices; }; calibre = { path = "~/calibre"; label = "calibre"; - devices = builtins.attrNames syncthingMesh; + devices = builtins.attrNames syncMachines; }; }; - devices = syncthingMesh; + devices = syncDevices; }; }; };