Move syncthing to system service on NAS
All checks were successful
Lint / lint (push) Successful in 18s

This commit is contained in:
Gabriel Simmer 2023-09-10 12:04:55 +01:00
parent e12c0312bb
commit f74470e5ff
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ
3 changed files with 13 additions and 9 deletions

View file

@ -58,8 +58,8 @@
enable = true;
allowedUDPPortRanges = [ { from = 27031; to = 27036; } ];
allowedTCPPortRanges = [ { from = 27036; to = 27037; } ];
allowedTCPPorts = [ 7000 7100 ];
allowedUDPPorts = [ 6000 6001 7011 41641 3478 ];
allowedTCPPorts = [ 7000 7100 22000 ];
allowedUDPPorts = [ 6000 6001 7011 41641 3478 22000 21027 ];
trustedInterfaces = [ "tailscale0" ];
checkReversePath = "loose";
};

View file

@ -49,6 +49,15 @@
};
};
};
syncthing = {
enable = true;
overrideDevices = false;
overrideFolders = false;
user = "gsimmer";
dataDir = "/Primary/gabriel";
#configDir = "/Primary/gsimmer/.config/syncthing";
guiAddress = "100.116.48.47:8384";
};
prometheus.exporters = {
blackbox = {
enable = true;
@ -310,8 +319,8 @@
trustedInterfaces = ["tailscale0" "virbr0"];
checkReversePath = "loose";
enable = true;
allowedTCPPorts = [ 22 53 80 443 2049 4328 5432 9100 ];
allowedUDPPorts = [ 53 41641 ];
allowedTCPPorts = [ 22 53 80 443 2049 4328 5432 9100 22000 ];
allowedUDPPorts = [ 53 41641 22000 21027 ];
};
useDHCP = false;
bridges = {

View file

@ -52,11 +52,6 @@ end
}
];
};
services.syncthing = {
enable = true;
extraOptions = [ "--gui-address=100.116.48.47:8384" ];
};
programs.direnv = {
enable = true;