mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
hosts/plover: update network interface settings
This commit is contained in:
parent
805ef47f70
commit
9ba11f0fa6
@ -56,7 +56,7 @@ in
|
|||||||
# https://discourse.nixos.org/t/nixos-on-hetzner-cloud-servers-ipv6/221/
|
# https://discourse.nixos.org/t/nixos-on-hetzner-cloud-servers-ipv6/221/
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wait-online.ignoredInterfaces = [ "lo" ];
|
wait-online.ignoredInterfaces = [ "lo" interfaces.internal.ifname ];
|
||||||
|
|
||||||
# For more information, you can look at Hetzner documentation from
|
# For more information, you can look at Hetzner documentation from
|
||||||
# https://docs.hetzner.com/robot/dedicated-server/ip/additional-ip-adresses/
|
# https://docs.hetzner.com/robot/dedicated-server/ip/additional-ip-adresses/
|
||||||
@ -68,6 +68,8 @@ in
|
|||||||
address = [ "${IPv6.address}/64" ];
|
address = [ "${IPv6.address}/64" ];
|
||||||
gateway = [ IPv6.gateway ];
|
gateway = [ IPv6.gateway ];
|
||||||
|
|
||||||
|
# Setting up some other networking thingy.
|
||||||
|
domains = [ config.networking.domain ];
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
# IPv6 has to be manually configured.
|
# IPv6 has to be manually configured.
|
||||||
DHCP = "ipv4";
|
DHCP = "ipv4";
|
||||||
@ -77,12 +79,17 @@ in
|
|||||||
IPv6AcceptRA = true;
|
IPv6AcceptRA = true;
|
||||||
|
|
||||||
DNS = [
|
DNS = [
|
||||||
|
# The custom DNS servers.
|
||||||
|
IPv4.address
|
||||||
|
IPv6.address
|
||||||
|
|
||||||
"2a01:4ff:ff00::add:2"
|
"2a01:4ff:ff00::add:2"
|
||||||
"2a01:4ff:ff00::add:1"
|
"2a01:4ff:ff00::add:1"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# The interface for our LAN.
|
||||||
"20-lan" = with interfaces.internal; {
|
"20-lan" = with interfaces.internal; {
|
||||||
matchConfig.Name = lib.concatStringsSep " " internalEthernetInterfaceNames;
|
matchConfig.Name = lib.concatStringsSep " " internalEthernetInterfaceNames;
|
||||||
|
|
||||||
@ -98,10 +105,6 @@ in
|
|||||||
dns = [
|
dns = [
|
||||||
IPv4.address
|
IPv4.address
|
||||||
IPv6.address
|
IPv6.address
|
||||||
|
|
||||||
# Just in case it cannot really do it.
|
|
||||||
"127.0.0.1"
|
|
||||||
"::1"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Force our own internal domain to be used in the system.
|
# Force our own internal domain to be used in the system.
|
||||||
|
Loading…
Reference in New Issue
Block a user