networking

This commit is contained in:
cnst
2024-07-20 17:50:06 +02:00
parent 66d370d256
commit 04ee4810b9
3 changed files with 19 additions and 18 deletions

15
nixos/core/networking.nix Normal file
View File

@@ -0,0 +1,15 @@
{
networking = {
networkmanager.enable = true;
hostName = "cnix";
nftables.enable = true;
firewall = {
enable = true;
interfaces = {
"enp7s0" = {
allowedTCPPorts = [22 80 443];
};
};
};
};
}