porthos: networking: clean-up style

This commit is contained in:
Bruno BELANYI 2021-02-07 10:46:22 +00:00
parent 5e06025d67
commit 4ceb0f7552

View file

@ -2,26 +2,31 @@
{ ... }: { ... }:
{ {
networking.hostName = "porthos"; # Define your hostname. networking = {
networking.domain = "test.belanyi.fr"; # Define your domain. hostName = "porthos"; # Define your hostname.
domain = "test.belanyi.fr"; # Define your domain.
# The global useDHCP flag is deprecated, therefore explicitly set to false here. # 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 # Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour. # replicates the default behaviour.
networking.useDHCP = false; useDHCP = false;
networking.interfaces.bond0.useDHCP = true;
networking.interfaces.bonding_masters.useDHCP = true; interfaces = {
networking.interfaces.dummy0.useDHCP = true; bond0.useDHCP = true;
networking.interfaces.erspan0.useDHCP = true; bonding_masters.useDHCP = true;
networking.interfaces.eth0.useDHCP = true; dummy0.useDHCP = true;
networking.interfaces.eth1.useDHCP = true; erspan0.useDHCP = true;
networking.interfaces.gre0.useDHCP = true; eth0.useDHCP = true;
networking.interfaces.gretap0.useDHCP = true; eth1.useDHCP = true;
networking.interfaces.ifb0.useDHCP = true; gre0.useDHCP = true;
networking.interfaces.ifb1.useDHCP = true; gretap0.useDHCP = true;
networking.interfaces.ip6tnl0.useDHCP = true; ifb0.useDHCP = true;
networking.interfaces.sit0.useDHCP = true; ifb1.useDHCP = true;
networking.interfaces.teql0.useDHCP = true; ip6tnl0.useDHCP = true;
networking.interfaces.tunl0.useDHCP = true; sit0.useDHCP = true;
teql0.useDHCP = true;
tunl0.useDHCP = true;
};
};
} }