2023-03-18 17:54:57 +01:00
|
|
|
{
|
2023-11-26 21:26:49 +01:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-03-18 17:54:57 +01:00
|
|
|
config = {
|
|
|
|
networking = {
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
2023-11-26 21:26:49 +01:00
|
|
|
allowedTCPPorts = [
|
2023-03-18 17:54:57 +01:00
|
|
|
# ssh
|
|
|
|
22
|
|
|
|
|
|
|
|
# http, https
|
2023-11-26 21:26:49 +01:00
|
|
|
80
|
|
|
|
443
|
2023-03-18 17:54:57 +01:00
|
|
|
|
|
|
|
# syncthing web ui
|
|
|
|
8384
|
|
|
|
|
|
|
|
# syncthing
|
2023-11-26 21:26:49 +01:00
|
|
|
22000
|
2023-03-18 17:54:57 +01:00
|
|
|
|
|
|
|
# mumble
|
|
|
|
64738
|
|
|
|
];
|
2023-11-26 21:26:49 +01:00
|
|
|
allowedUDPPorts = [
|
|
|
|
8080
|
2023-03-18 17:54:57 +01:00
|
|
|
|
2023-11-26 21:26:49 +01:00
|
|
|
# other
|
2023-03-18 17:54:57 +01:00
|
|
|
12333
|
|
|
|
|
|
|
|
# syncthing discovery
|
2023-11-26 21:26:49 +01:00
|
|
|
21027
|
2023-03-18 17:54:57 +01:00
|
|
|
|
2023-11-26 21:26:49 +01:00
|
|
|
# mumble
|
2023-03-18 17:54:57 +01:00
|
|
|
64738
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|