nixos/system/services/networking.nix
2024-12-04 16:27:03 +01:00

20 lines
410 B
Nix

{ config, pkgs, ... }:
{
networking = {
wireless = {
enable = false;
networks = {
# "bennynet" = {
# pskRaw = "85e8f17e02f4b4df5ddc9b95d1a4256b3c2608fcc8dfa1860b693d06c2a0bf1f";
# };
};
};
firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
extraCommands = "iptables -A INPUT -s 192.168.0.0/16 -j ACCEPT";
};
};
}