NixOS/system/modules/networking.nix

16 lines
314 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-06-12 20:25:30 +07:00
networking.firewall =
let
cfg = config.profile.networking.firewall;
in
{
enable = cfg.enable;
allowedTCPPorts = cfg.allowedTCPPorts;
};
2024-06-12 09:54:11 +07:00
}