Init syncthing

This commit is contained in:
Joey Hafner 2024-12-31 10:47:24 -08:00
parent 32e69856af
commit 83c01a421d
Signed by: Jafner
GPG Key ID: 6D9A24EF2F389E55
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{ ... }: {
services.syncthing = {
enable = false;
tray = true;
};
}

View File

@ -0,0 +1,43 @@
{ vars, ... }: {
networking.firewall = {
allowedTCPPorts = [ 8384 22000 ];
allowedUDPPorts = [ 22000 21027 ];
};
services.syncthing = {
enable = false;
group = "users";
user = "${vars.user.username}";
configDir = /home/${vars.user.username}/.config/syncthing;
overrideDevices = false;
overrideFolders = false;
settings = {
devices = {
#"server" = { id = ""; };
"phone" = { id = "JJNURBH-YHHCPGJ-6I6YKE4-4CLD35N-LWA3JAV-KUPNYBO-I7Q4ZHY-FR3RNAU"; };
#"laptop" = { id = ""; };
};
folders = {
"Documents" = {
path = "~/Documents/";
devices = [ "phone" ];
};
"Pictures" = {
path = "~/Pictures/";
devices = [ "phone" ];
};
"Videos" = {
path = "~/Videos/";
devices = [ "phone" ];
};
"Emulators" = {
path = "~/Emulators/";
devices = [ "phone" ];
};
"Backups" = {
path = "~/Backups/";
devices = [];
};
};
};
};
}