added firewall
This commit is contained in:
parent
7c9883774f
commit
9a0f11d63c
2 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
./disko.nix
|
||||
./data.nix
|
||||
./firewall.nix
|
||||
./gitea.nix
|
||||
./hardware-configuration.nix
|
||||
|
||||
|
|
8
hosts/Anton/firewall.nix
Normal file
8
hosts/Anton/firewall.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443 3000 ];
|
||||
allowedUDPPorts = [ 22 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue