2023-06-11 15:57:47 +00:00
|
|
|
# networking.nix
|
|
|
|
|
|
|
|
# Import the necessary modules
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# Set the network interface configuration
|
|
|
|
# networking.interfaces.eth0.useDHCP = true;
|
|
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
# Open ports in the firewall.
|
|
|
|
# networking.firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
|
|
# Or disable the firewall altogether.
|
|
|
|
# networking.firewall.enable = false;
|
|
|
|
|
|
|
|
|
|
|
|
# Set the hostname
|
2023-06-13 14:12:52 +00:00
|
|
|
networking.hostName = "lpt-mans";
|
2023-06-11 15:57:47 +00:00
|
|
|
}
|