agares: add DNS and NTP options (RA and DHCP)

This commit is contained in:
Tim Schubert 2024-01-24 21:16:19 +01:00
parent 958dacbac5
commit bcc4d5e189
Signed by: dadada
SSH key fingerprint: SHA256:bFAjFH3hR8zRBaJjzQDjc3o4jqoq5EZ87l+KXEjxIz0
2 changed files with 22 additions and 6 deletions

View file

@ -10,7 +10,7 @@ in
enable = true;
links = {
"10-persistent" = {
matchConfig.OriginalName = [ "enp1s0" "enp2s0" ];
matchConfig.OriginalName = [ "enp1s0" "enp2s0" ]; # takes search domains from the [Network]
linkConfig.MACAddressPolicy = "persistent";
};
};
@ -90,14 +90,18 @@ in
}
];
dhcpServerConfig = {
DNS = "${ipv4Prefix}.${subnetId}.1";
NTP = "${ipv4Prefix}.${subnetId}.1";
DNS = "_server_address";
NTP = "_server_address";
EmitDNS = true;
EmitNTP = true;
EmitRouter = true;
PoolOffset = 100;
PoolSize = 100;
SendOption = "12:string:${domain}";
};
ipv6SendRAConfig = {
EmitDNS = true;
DNS = "_link_local";
EmitDomains = true; # takes search domains from the [Network]
};
linkConfig = {
RequiredForOnline = "no";