nix-config/hosts/nixos/aramis/networking.nix

20 lines
478 B
Nix
Raw Normal View History

2021-04-02 14:00:21 +02:00
{ ... }:
{
networking = {
hostName = "aramis";
2021-04-02 14:00:21 +02:00
# 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.
useDHCP = false;
};
2021-05-29 16:41:59 +02:00
my.hardware.networking = {
# Which interface is used to connect to the internet
externalInterface = "enp0s3";
2021-05-29 16:41:59 +02:00
# Enable WiFi integration
wireless.enable = true;
};
2021-04-02 14:00:21 +02:00
}