mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-01 17:50:51 +02:00
tower: init syncthing
This commit is contained in:
parent
23daeb4cca
commit
f10f4ae7fc
1 changed files with 20 additions and 0 deletions
|
@ -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.allowedTCPPorts = [ 80 443 1810 9989 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 80 443 1810 9989 ];
|
networking.firewall.allowedUDPPorts = [ 80 443 1810 9989 ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue