mirror of
https://codeberg.org/mtxyz/nixconf.git
synced 2024-11-09 01:51:57 +00:00
Opens syncthing firewall prots.
This commit is contained in:
parent
aaf2232003
commit
9ded5f63fb
2 changed files with 8 additions and 1 deletions
|
@ -4,4 +4,6 @@
|
|||
private = false;
|
||||
minimal = true;
|
||||
};
|
||||
|
||||
services.syncthing.enable = true;
|
||||
}
|
||||
|
|
|
@ -135,7 +135,12 @@ in
|
|||
# Dont start tailscale on boot, interferes with nebula but useful as a fallback.
|
||||
systemd.services.tailscaled.enable = lib.mkForce false;
|
||||
|
||||
services.syncthing.openDefaultPorts = lib.mkDefault cfg.private;
|
||||
# Open ports for syncthing user service.
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22000 ];
|
||||
allowedUDPPorts = [ 22000 ];
|
||||
};
|
||||
|
||||
boot.binfmt.emulatedSystems = lib.optionals (!cfg.minimal) [ "aarch64-linux" "riscv64-linux" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue