add macbook to syncthing peer

This commit is contained in:
Yan Lin 2025-11-13 20:05:14 +01:00
parent 88c409fbd4
commit b54c31e98c

View file

@ -67,6 +67,9 @@ in
"ipad" = { "ipad" = {
id = "ZN3W6K7-VTRRRMT-Y35PSVU-EARJ6FP-6JBFIOF-YAFUAUZ-2TSFW3T-5YGDZAO"; id = "ZN3W6K7-VTRRRMT-Y35PSVU-EARJ6FP-6JBFIOF-YAFUAUZ-2TSFW3T-5YGDZAO";
}; };
"macbook" = {
id = "XPAMYJX-D7UZKPI-JBLTAWG-EBPSFYV-NEFV42V-NIUZKQN-KTVTGGP-OOXL5AT";
};
}; };
# Define shared folders (only enabled ones) # Define shared folders (only enabled ones)
@ -74,7 +77,7 @@ in
(lib.optionalAttrs (lib.elem "Credentials" cfg.enabledFolders) { (lib.optionalAttrs (lib.elem "Credentials" cfg.enabledFolders) {
"Credentials" = { "Credentials" = {
path = "~/Credentials"; path = "~/Credentials";
devices = [ "iphone" "hs" "thinkpad" "ipad" ]; devices = [ "iphone" "hs" "thinkpad" "ipad" "macbook" ];
ignorePerms = true; ignorePerms = true;
versioning = commonVersioning; versioning = commonVersioning;
}; };
@ -82,7 +85,7 @@ in
// (lib.optionalAttrs (lib.elem "Documents" cfg.enabledFolders) { // (lib.optionalAttrs (lib.elem "Documents" cfg.enabledFolders) {
"Documents" = { "Documents" = {
path = "~/Documents"; path = "~/Documents";
devices = [ "hs" "thinkpad" ]; devices = [ "hs" "thinkpad" "macbook" ];
ignorePerms = true; ignorePerms = true;
versioning = commonVersioning; versioning = commonVersioning;
}; };
@ -90,7 +93,7 @@ in
// (lib.optionalAttrs (lib.elem "Obsidian" cfg.enabledFolders) { // (lib.optionalAttrs (lib.elem "Obsidian" cfg.enabledFolders) {
"Obsidian" = { "Obsidian" = {
path = "~/Obsidian"; path = "~/Obsidian";
devices = [ "hs" "thinkpad" ]; devices = [ "hs" "thinkpad" "macbook" ];
ignorePerms = true; ignorePerms = true;
versioning = commonVersioning; versioning = commonVersioning;
}; };