heimdall: Use systemd-networkd
This commit is contained in:
parent
42577691d2
commit
e279ac6b65
1 changed files with 39 additions and 32 deletions
|
@ -31,42 +31,49 @@
|
||||||
hostName = "heimdall";
|
hostName = "heimdall";
|
||||||
domain = "datarift.nl";
|
domain = "datarift.nl";
|
||||||
|
|
||||||
nameservers = [ "8.8.8.8" ];
|
|
||||||
defaultGateway = "172.31.1.1";
|
|
||||||
defaultGateway6 = {
|
|
||||||
address = "fe80::1";
|
|
||||||
interface = "eth0";
|
|
||||||
};
|
|
||||||
dhcpcd.enable = false;
|
|
||||||
usePredictableInterfaceNames = lib.mkForce false;
|
usePredictableInterfaceNames = lib.mkForce false;
|
||||||
interfaces = {
|
useDHCP = false;
|
||||||
eth0 = {
|
networkmanager.enable = false;
|
||||||
ipv4.addresses = [
|
useNetworkd = true;
|
||||||
{
|
firewall.trustedInterfaces = [ "tailscale0" ];
|
||||||
address = "159.69.211.175";
|
};
|
||||||
prefixLength = 32;
|
|
||||||
}
|
systemd.network = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
networks = {
|
||||||
|
"40-eth0" = {
|
||||||
|
matchConfig = {
|
||||||
|
Name = "eth0";
|
||||||
|
};
|
||||||
|
|
||||||
|
networkConfig = {
|
||||||
|
Address = [
|
||||||
|
"159.69.211.175/32"
|
||||||
|
"2a01:4f8:1c1e:5fb2::1/64"
|
||||||
|
"fe80::9400:2ff:fe12:a2eb/64"
|
||||||
];
|
];
|
||||||
ipv6.addresses = [
|
DHCP = "no";
|
||||||
{
|
Gateway = [
|
||||||
address = "2a01:4f8:1c1e:5fb2::1";
|
"172.31.1.1"
|
||||||
prefixLength = 64;
|
"fe80::1"
|
||||||
}
|
|
||||||
{
|
|
||||||
address = "fe80::9400:2ff:fe12:a2eb";
|
|
||||||
prefixLength = 64;
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
ipv4.routes = [
|
};
|
||||||
|
|
||||||
|
routes = [
|
||||||
{
|
{
|
||||||
address = "172.31.1.1";
|
routeConfig = {
|
||||||
prefixLength = 32;
|
Destination = "172.31.1.1/32";
|
||||||
|
Scope = "link";
|
||||||
|
Protocol = "static";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
|
||||||
ipv6.routes = [
|
|
||||||
{
|
{
|
||||||
address = "fe80::1";
|
routeConfig = {
|
||||||
prefixLength = 128;
|
Destination = "fe80::1/128";
|
||||||
|
Scope = "link";
|
||||||
|
Protocol = "static";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue