Add polaris to syncthing devices

This commit is contained in:
2025-12-02 13:20:03 +01:00
parent 2b7c944ba5
commit f794cdb44c
2 changed files with 14 additions and 13 deletions

View File

@@ -4,6 +4,18 @@
... ...
}: }:
let 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; username = config.var.username;
hostname = config.var.hostname; hostname = config.var.hostname;
isOrion = hostname == "orion"; isOrion = hostname == "orion";
@@ -33,12 +45,12 @@ in
overrideFolders = true; # Overrides any folders added via Web UI overrideFolders = true; # Overrides any folders added via Web UI
settings = { settings = {
devices = config.var.syncthing.devices; devices = devices;
folders = { folders = {
"sync" = { "sync" = {
path = syncPath; 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) # Ensure new files are readable by the group (chmod 770 approx)
ignorePerms = false; ignorePerms = false;
}; };

View File

@@ -25,17 +25,6 @@
browser = "brave"; 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; autoUpgrade = false;
autoGarbageCollector = true; autoGarbageCollector = true;
}; };