2022-07-07 11:15:52 +02:00
|
|
|
{ config, pkgs, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.kea.dhcp4 = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
interfaces-config = {
|
|
|
|
interfaces = [ "ens19"];
|
|
|
|
};
|
|
|
|
lease-database = {
|
|
|
|
name = "/var/lib/kea/dhcp4.leases";
|
|
|
|
persist = true;
|
|
|
|
type = "memfile";
|
|
|
|
};
|
|
|
|
subnet4 = [
|
|
|
|
# Heimnetz
|
|
|
|
{
|
|
|
|
subnet = "10.42.10.1/24";
|
|
|
|
pools = [
|
|
|
|
{
|
|
|
|
pool = "10.42.10.50 - 10.42.10.240";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
option-data = [
|
|
|
|
{
|
|
|
|
name = "routers";
|
|
|
|
data = "10.42.10.1";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "domain-name-servers";
|
2022-07-17 13:52:49 +02:00
|
|
|
data = "10.42.10.8";
|
2022-07-07 11:15:52 +02:00
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "domain-name";
|
2022-07-17 13:41:37 +02:00
|
|
|
data = "bula22.de";
|
2022-07-07 11:15:52 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2022-07-17 13:41:37 +02:00
|
|
|
}
|