NixOS/system/modules/networking.nix

20 lines
503 B
Nix
Raw Normal View History

2024-06-12 20:25:30 +07:00
{ config, lib, ... }:
2024-06-12 09:54:11 +07:00
{
networking.networkmanager.enable = true;
networking.extraHosts = ''
192.168.50.217 gitlab.bareksa.com
2024-07-23 10:47:51 +07:00
192.168.50.205 tools.bareksa.local
2024-07-26 19:50:08 +07:00
192.168.3.50 kafka.dev.bareksa.local
192.168.3.109 redpanda.dev.bareksa.local kafka-console.dev.bareksa.local
2024-06-12 09:54:11 +07:00
'';
2024-06-12 20:25:30 +07:00
networking.firewall =
let
cfg = config.profile.networking.firewall;
in
{
enable = cfg.enable;
2024-06-12 20:25:30 +07:00
allowedTCPPorts = cfg.allowedTCPPorts;
allowedUDPPorts = [ 53 ];
2024-06-12 20:25:30 +07:00
};
2024-06-12 09:54:11 +07:00
}