mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-29 07:58:45 +01:00
39 lines
538 B
Nix
39 lines
538 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
{
|
||
|
config = {
|
||
|
networking = {
|
||
|
firewall = {
|
||
|
enable = true;
|
||
|
allowedTCPPorts = [
|
||
|
# ssh
|
||
|
22
|
||
|
|
||
|
# http, https
|
||
|
80 443
|
||
|
|
||
|
# syncthing web ui
|
||
|
8384
|
||
|
|
||
|
# syncthing
|
||
|
22000
|
||
|
|
||
|
# mumble
|
||
|
64738
|
||
|
];
|
||
|
allowedUDPPorts = [
|
||
|
8080
|
||
|
|
||
|
# other
|
||
|
12333
|
||
|
|
||
|
# syncthing discovery
|
||
|
21027
|
||
|
|
||
|
# mumble
|
||
|
64738
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|