dotfiles-nixos/nixos/machines/lpt-mans/network.nix
2023-06-13 16:12:09 +02:00

22 lines
494 B
Nix

# 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
networking.hostName = "nixos-laptop-mans";
}