mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Switch the dhcp server on blowhole to kea
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
c469f66ea0
commit
985d7ea696
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue