mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 23:34:39 +02:00
62f99a75dc
feat(service): remove ntfy
32 lines
524 B
Nix
32 lines
524 B
Nix
{ ... }:
|
|
let
|
|
dockerNetwork = "172.18.0.0/16";
|
|
in
|
|
{
|
|
networking = {
|
|
networkmanager.enable = true;
|
|
nftables.enable = true;
|
|
firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [
|
|
22
|
|
25
|
|
80
|
|
143
|
|
443
|
|
465
|
|
587
|
|
993
|
|
];
|
|
allowedUDPPorts = [
|
|
80
|
|
443
|
|
];
|
|
extraInputRules = ''
|
|
ip saddr ${dockerNetwork} tcp dport 5900 accept
|
|
ip saddr ${dockerNetwork} tcp dport 8001-8005 accept
|
|
'';
|
|
};
|
|
};
|
|
}
|