NixOS/system/modules/networking.nix

18 lines
369 B
Nix

{ config, lib, ... }:
{
networking.networkmanager.enable = true;
networking.extraHosts = ''
192.168.50.217 gitlab.bareksa.com
'';
networking.firewall =
let
cfg = config.profile.networking.firewall;
in
{
# enable = cfg.enable;
enable = true;
allowedTCPPorts = cfg.allowedTCPPorts;
allowedUDPPorts = [ 53 ];
};
}