From f794cdb44c3d11bcc4bb5f60697a99dc145fbfd8 Mon Sep 17 00:00:00 2001 From: kiri Date: Tue, 2 Dec 2025 13:20:03 +0100 Subject: [PATCH] Add polaris to syncthing devices --- modules/nixos/syncthing.nix | 16 ++++++++++++++-- modules/variables.nix | 11 ----------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/modules/nixos/syncthing.nix b/modules/nixos/syncthing.nix index 5666690..04225c7 100644 --- a/modules/nixos/syncthing.nix +++ b/modules/nixos/syncthing.nix @@ -4,6 +4,18 @@ ... }: let + devices = { + "altair" = { + id = "HDHWROJ-ZLNQKCL-PN6WGHA-IGJHIRI-3UHDYUU-LUJHYK4-UMKWLAZ-VFISJQF"; + }; + "orion" = { + id = "7ESQ3BX-FEW7656-ZPT3CKF-FLXON26-HXRNTDW-THSJBNF-LFWCHFB-ASP4WAG"; + }; + "polaris" = { + id = "6YBO3OK-3QVMKWL-ZOS4ZTF-G53CY6K-WYZJNFG-DTYCUA4-WJF2LRC-PJT3NAL"; + }; + }; + username = config.var.username; hostname = config.var.hostname; isOrion = hostname == "orion"; @@ -33,12 +45,12 @@ in overrideFolders = true; # Overrides any folders added via Web UI settings = { - devices = config.var.syncthing.devices; + devices = devices; folders = { "sync" = { path = syncPath; - devices = builtins.attrNames config.var.syncthing.devices; # Share with all defined devices + devices = builtins.attrNames devices; # Share with all defined devices # Ensure new files are readable by the group (chmod 770 approx) ignorePerms = false; }; diff --git a/modules/variables.nix b/modules/variables.nix index ee5e5ca..ab6fe4c 100644 --- a/modules/variables.nix +++ b/modules/variables.nix @@ -25,17 +25,6 @@ browser = "brave"; }; - syncthing = { - devices = { - "altair" = { - id = "HDHWROJ-ZLNQKCL-PN6WGHA-IGJHIRI-3UHDYUU-LUJHYK4-UMKWLAZ-VFISJQF"; - }; - "orion" = { - id = "7ESQ3BX-FEW7656-ZPT3CKF-FLXON26-HXRNTDW-THSJBNF-LFWCHFB-ASP4WAG"; - }; - }; - }; - autoUpgrade = false; autoGarbageCollector = true; };