mossnet syncthing
This commit is contained in:
parent
5f699b2b79
commit
0b15a58e57
19
profiles/syncthing/default.nix
Normal file
19
profiles/syncthing/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "anish";
|
||||||
|
dataDir = "/home/anish/usr/syncthing";
|
||||||
|
guiAddress = "0.0.0.0:8384";
|
||||||
|
};
|
||||||
|
|
||||||
|
mossnet.backup = {
|
||||||
|
enable = true;
|
||||||
|
name = "syncthing";
|
||||||
|
paths = [ "/home/anish/usr/syncthing" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
|
||||||
|
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
||||||
|
}
|
Loading…
Reference in a new issue