mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-23 13:44:42 +01:00
44 lines
549 B
Nix
44 lines
549 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
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|