dotfiles/modules/hardware/networking.nix

14 lines
512 B
Nix
Raw Normal View History

2022-04-30 16:07:58 +00:00
{ identity, ... }: {
2022-04-29 02:25:05 +00:00
2022-04-30 16:07:58 +00:00
networking.hostName = identity.hostname; # Define your hostname.
2022-04-29 02:25:05 +00:00
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp0s31f6.useDHCP = true;
networking.interfaces.wlp3s0.useDHCP = true;
}