2021-02-06 15:35:38 +01:00
|
|
|
# Networking configuration
|
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
2021-02-07 11:46:22 +01:00
|
|
|
networking = {
|
|
|
|
hostName = "porthos"; # Define your hostname.
|
2021-02-08 10:59:41 +01:00
|
|
|
domain = "belanyi.fr"; # Define your domain.
|
2021-02-06 15:35:38 +01:00
|
|
|
|
|
|
|
|
2021-02-07 11:46:22 +01: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;
|
|
|
|
|
|
|
|
interfaces = {
|
|
|
|
bond0.useDHCP = true;
|
|
|
|
bonding_masters.useDHCP = true;
|
|
|
|
dummy0.useDHCP = true;
|
|
|
|
erspan0.useDHCP = true;
|
|
|
|
eth0.useDHCP = true;
|
|
|
|
eth1.useDHCP = true;
|
|
|
|
gre0.useDHCP = true;
|
|
|
|
gretap0.useDHCP = true;
|
|
|
|
ifb0.useDHCP = true;
|
|
|
|
ifb1.useDHCP = true;
|
|
|
|
ip6tnl0.useDHCP = true;
|
|
|
|
sit0.useDHCP = true;
|
|
|
|
teql0.useDHCP = true;
|
|
|
|
tunl0.useDHCP = true;
|
|
|
|
};
|
|
|
|
};
|
2021-02-18 01:09:57 +01:00
|
|
|
|
|
|
|
# Which interface is used to connect to the internet
|
2021-05-29 16:41:59 +02:00
|
|
|
my.hardware.networking.externalInterface = "eth0";
|
2021-02-06 15:35:38 +01:00
|
|
|
}
|