services.kea.dhcp4.settings
NixOS option
Kea DHCP4 configuration as an attribute set, see https://kea.readthedocs.io/en/kea-3.0.3/arm/dhcp4-srv.html.
type: JSON valueDefault
null
Example
declared in: nixos/modules/services/networking/kea.nixView source on NixOS/nixpkgs →{
interfaces-config = {
interfaces = [
"eth0"
];
};
lease-database = {
name = "/var/lib/kea/dhcp4.leases";
persist = true;
type = "memfile";
};
rebind-timer = 2000;
renew-timer = 1000;
subnet4 = [
{
id = 1;
pools = [
{
pool = "192.0.2.100 - 192.0.2.240";
}
];
subnet = "192.0.2.0/24";
}
];
valid-lifetime = 4000;
}