tower: init syncthing

This commit is contained in:
Julien Malka 2023-11-22 18:13:28 +01:00
parent 23daeb4cca
commit f10f4ae7fc
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -165,6 +165,26 @@
};
services.syncthing = {
enable = true;
user = "julien";
group = "users";
overrideDevices = true;
overrideFolders = true;
devices = {
"fischer" = { id = "MHV2PGN-GAHQMV5-ITXGNQS-IRJC3XL-OQIHVUX-JVKBZ6Z-33XHE7H-NC6H5AE"; };
};
folders = {
"dev" = {
# Name of folder in Syncthing, also the folder ID
path = "/home/julien/dev"; # Which folder to add to Syncthing
devices = [ "fischer" ]; # Which devices to share the folder with
};
};
};
systemd.services.syncthing.serviceConfig.StateDirectory = "syncthing";
networking.firewall.allowedTCPPorts = [ 80 443 1810 9989 ];
networking.firewall.allowedUDPPorts = [ 80 443 1810 9989 ];