2023-06-19 18:50:13 +00:00
|
|
|
{ lib, ... }: {
|
2023-11-29 14:39:30 +00:00
|
|
|
# the name of the machine
|
2023-05-16 19:10:41 +00:00
|
|
|
networking.hostName = "neodymium";
|
|
|
|
|
2023-11-29 14:39:30 +00:00
|
|
|
# domain name servers, use clouflare family
|
|
|
|
networking.nameservers = [ "1.1.1.2" "1.0.0.2" ];
|
|
|
|
|
2023-05-16 19:10:41 +00:00
|
|
|
# use networkManager, see nmcli
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
# firewall
|
|
|
|
networking.firewall = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
allowedTCPPorts = [ ];
|
|
|
|
allowedUDPPorts = [ ];
|
|
|
|
};
|
|
|
|
|
2023-06-19 18:50:13 +00:00
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
|
|
|
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
2023-05-16 19:10:41 +00:00
|
|
|
}
|