-
-
Save andir/310486654661b37a6e15f4e97b62409d to your computer and use it in GitHub Desktop.
hetzner systemd network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
# define macaddr, ipv4cidr, gw etc... | |
in { | |
systemd.network.networks."10-eth0" = { | |
matchConfig = { | |
MACAddress = macaddr; | |
}; | |
address = [ ipv4cidr "${ipv6}/128" "${ips.v6.host}/128" "${ips.v6._host}/128" ]; | |
gateway = [ ipv4gw ipv6gw ]; | |
dns = dnsServers; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment