nixos/system/services/networking.nix

20 lines
410 B
Nix
Raw Normal View History

2024-12-04 16:27:03 +01:00
{ config, pkgs, ... }:
{
2024-12-04 16:15:54 +01:00
networking = {
2024-12-04 16:27:03 +01:00
wireless = {
enable = false;
networks = {
# "bennynet" = {
# pskRaw = "85e8f17e02f4b4df5ddc9b95d1a4256b3c2608fcc8dfa1860b693d06c2a0bf1f";
# };
};
2024-12-04 16:15:54 +01:00
};
2024-12-04 16:27:03 +01:00
firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
extraCommands = "iptables -A INPUT -s 192.168.0.0/16 -j ACCEPT";
2024-12-04 16:15:54 +01:00
2024-12-04 16:27:03 +01:00
};
2024-12-04 16:15:54 +01:00
};
2024-12-04 16:27:03 +01:00
}