Skip to content

Instantly share code, notes, and snippets.

@andir
Created June 16, 2019 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andir/310486654661b37a6e15f4e97b62409d to your computer and use it in GitHub Desktop.
Save andir/310486654661b37a6e15f4e97b62409d to your computer and use it in GitHub Desktop.
hetzner systemd network
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