Switch the dhcp server on blowhole to kea

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-07 22:44:42 +02:00
parent c469f66ea0
commit 985d7ea696
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -60,15 +60,20 @@ in
before = [ "network-online.target" ];
};
services.dhcpd4 = {
services.kea.dhcp4 = {
enable = true;
interfaces = [ "${lan}" ]; # "${wlan}"
extraConfig = ''
option domain-name-servers ${secret.network.ips.blowhole.ip or ""};
option subnet-mask 255.255.255.0;
${secret.dhcp.blowhole.zones or (const "") { inherit wlan lan; }}
'';
settings = {
interfaces-config.interfaces = [
"${lan}"
];
lease-database = {
name = "/var/lib/kea/dhcp4.leases";
persist = true;
type = "memfile";
};
rebind-timer = 2000;
renew-timer = 1000;
} // (secret.dhcp.blowhole.zones or (const {}) { inherit wlan lan; });
};
networking = {