22 lines
394 B
Nix
22 lines
394 B
Nix
{lib, ... }: {
|
|
|
|
# Enable networking with NetworkManager
|
|
networking = {
|
|
networkmanager = {
|
|
enable = true;
|
|
};
|
|
|
|
useDHCP = lib.mkDefault true;
|
|
# enableIPv6 = lib.mkForce false;
|
|
firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ ];
|
|
allowedUDPPorts = [ ];
|
|
};
|
|
};
|
|
|
|
# boot.kernel.sysctl = {
|
|
# "net.ipv6.conf.all.disable_ipv6" = true;
|
|
# };
|
|
|
|
}
|