nixos-config/config/services/syncthing.nix

136 lines
3.2 KiB
Nix
Raw Normal View History

2022-06-12 15:42:42 +00:00
_: {
2022-05-06 09:54:54 +00:00
services.syncthing = {
enable = true;
2022-05-12 07:46:29 +00:00
guiAddress = "[::]:8384";
2022-05-06 09:54:54 +00:00
devices = {
HuskyPhone = {
id = "K4WRMGA-3PNENMC-FT4FGR2-DBOJUAW-QG6GS7E-WDJWA5Q-7KEQI3K-T4D3AA3";
};
nutty-noon = {
addresses = [
"quic://nutty-noon.int.chir.rs:51820"
"tcp://nutty-noon.int.chir.rs:51820"
];
id = "LW664LC-AZIJD5E-EJQE6OJ-K4IIR2K-OBAA762-DAJA65I-IQPEOGE-CD3YXA5";
};
Maruno = {
id = "R7NYMWC-QR56IC2-TGQWVJG-HL5VTQX-UTPD3YN-76MTTSW-UEW4VZJ-N7SMVAP";
};
thinkrac = {
id = "SION6SB-UTOUYKL-UHJBK4D-S6WNUZO-BOB5YI3-7JGUG6S-PTKKGX3-VAWPDAP";
};
phone = {
2022-12-20 11:24:49 +00:00
id = "IM52Z76-ZPDILW4-WU4UOFN-PIJJPJP-NGCIL57-WT6Y44G-WRFUMDW-MUZQBQQ";
2022-05-06 09:54:54 +00:00
};
Huskydev = {
id = "XKAXBTK-AT6Q2LU-DEOTKFM-LUCPZME-BGI4EKG-53DZ3L5-OCWG72B-Q7JSXQU";
};
WindowsPc = {
id = "YPACS7B-33LLN2N-WULGQVG-VXHRDZJ-MNT5JDC-BT7XQNC-C7M3UB6-SD47JQG";
};
};
folders = {
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/.wine" = {
2022-05-06 09:54:54 +00:00
devices = [
"nutty-noon"
"thinkrac"
];
id = "9dsac-mdcw7";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/lennyface" = {
2022-05-06 09:54:54 +00:00
devices = [
"Huskydev"
];
id = "aa7tq-xljao";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/Music-flac" = {
2022-05-06 09:54:54 +00:00
devices = [
"HuskyPhone"
"nutty-noon"
"Maruno"
"thinkrac"
"phone"
"Huskydev"
"WindowsPc"
];
id = "aahbh-r3esw";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/Studium" = {
2022-05-06 09:54:54 +00:00
devices = [
"nutty-noon"
"thinkrac"
"WindowsPc"
];
id = "esljk-osrt6";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/Pictures" = {
2022-05-06 09:54:54 +00:00
devices = [
"nutty-noon"
"thinkrac"
"phone"
"WindowsPc"
];
id = "f3dqm-u2jtt";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/Data" = {
2022-05-06 09:54:54 +00:00
devices = [
"nutty-noon"
"thinkrac"
"phone"
"WindowsPc"
];
id = "m6n5r-kkiyj";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/CarolineFlac" = {
2022-05-06 09:54:54 +00:00
devices = [
"HuskyPhone"
"nutty-noon"
"Maruno"
"thinkrac"
"phone"
"Huskydev"
"WindowsPc"
];
id = "qgvvc-uiohe";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/Camera" = {
2022-05-06 09:54:54 +00:00
devices = [
"nutty-noon"
"thinkrac"
"phone"
"WindowsPc"
];
id = "redmi_note_6_pro_y714-photos";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/reveng" = {
2022-05-06 09:54:54 +00:00
devices = [
"nutty-noon"
"thinkrac"
];
id = "txvu6-h3djq";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/Music" = {
2022-05-06 09:54:54 +00:00
devices = [
"nutty-noon"
"thinkrac"
"phone"
"WindowsPc"
];
id = "uotge-rsr0d";
};
2022-05-12 07:42:25 +00:00
"/var/lib/syncthing/Documents" = {
2022-05-06 09:54:54 +00:00
devices = [
"nutty-noon"
"thinkrac"
"phone"
"WindowsPc"
];
id = "vw3qm-e2xec";
};
};
};
2022-06-12 15:39:15 +00:00
networking.firewall.interfaces."wg0".allowedTCPPorts = [8384];
networking.firewall.allowedTCPPorts = [22000];
networking.firewall.allowedUDPPorts = [22000];
2022-05-06 09:54:54 +00:00
}