Refactor Syncthing folder declaration

This commit is contained in:
coolneng 2020-02-25 14:03:24 +01:00
parent 75714527ac
commit e1e33ec6e9
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 33 additions and 16 deletions

View File

@ -16,27 +16,44 @@
declarative = { declarative = {
devices = { devices = {
monolith = { id = "64P2YDH-S5V7PKM-XXBOSXC-WEXUSC7-B553ELI-6IJ3CPJ-ZFB3YA5-MTKAFAH"; }; monolith = { id = "64P2YDH-S5V7PKM-XXBOSXC-WEXUSC7-B553ELI-6IJ3CPJ-ZFB3YA5-MTKAFAH"; };
roamer = { id = "SFUXNH2-BMGSNOY-WKIGEGY-B2IELHN-DEZGSXW-LRTQOIX-LV5QIMV-2MTPGAU"; }; roamer = { id = "7CDUG25-KGBOIA7-Y73TZGA-NEHYLZP-OEOEWVN-DMS5U7K-QNNMPKY-YNGEWQL"; };
unit = { id = "VYHHL4A-KJ6WUYQ-4SNWNA3-YRCFTHE-52ZTRLP-4LV6ZDV-4VAJLHC-RJXYYQY"; }; unit = { id = "VYHHL4A-KJ6WUYQ-4SNWNA3-YRCFTHE-52ZTRLP-4LV6ZDV-4VAJLHC-RJXYYQY"; };
}; };
folders = { folders = {
"Documents" = { devices = [ "monolith" "roamer" "unit" ]; id = "wusdj-bfjkr"; }; Documents = {
"Notes" = { devices = [ "monolith" "roamer" "unit" ]; id = "kafhz-bfmzm"; }; id = "wusdj-bfjkr";
"Music" = { devices = [ "monolith" "roamer" "unit" ]; id = "2aqt7-vpprc"; }; type = "receiveonly";
"Photos" = { devices = [ "monolith" "roamer" "unit" ]; id = "mjibc-ustcg"; }; path = "/vault/syncthing/Documents";
"Projects" = { devices = [ "monolith" "unit" ]; id = "cjhmu-avy9v"; }; devices = [ "monolith" "roamer" "unit" ];
};
Documents.type = "receiveonly"; Notes = {
Notes.type = "receiveonly"; id = "kafhz-bfmzm";
Music.type = "receiveonly"; type = "receiveonly";
Photos.type = "receiveonly"; path = "/vault/syncthing/Notes";
Projects.type = "receiveonly"; devices = [ "monolith" "roamer" "unit" ];
};
Documents.path = "/vault/syncthing/Documents"; Music = {
Notes.path = "/vault/syncthing/Notes"; id = "2aqt7-vpprc";
Music.path = "/vault/syncthing/Music"; type = "receiveonly";
Photos.path = "/vault/syncthing/Photos"; path = "/vault/syncthing/Music";
Projects.path = "/vault/syncthing/Projects"; devices = [ "monolith" "roamer" "unit" ];
};
Photos = {
id = "mjibc-ustcg";
type = "receiveonly";
path = "/vault/syncthing/Photos";
devices = [ "monolith" "roamer" "unit" ];
};
Projects = {
devices = [ "monolith" "unit" ];
id = "cjhmu-avy9v";
type = "receiveonly";
path = "/vault/syncthing/Projects";
};
}; };
}; };
}; };