Enable kea exporter on Genesis

This commit is contained in:
Greg Hellings
2025-11-23 01:11:56 -06:00
parent b450d1b170
commit cde08576c2
2 changed files with 21 additions and 12 deletions
+15 -12
View File
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
let
lan = "ens18";
lanIP = "10.42.1.5";
@@ -76,16 +76,18 @@ in
environment.etc."hosts.d/local".text = extraHosts;
services = {
kea.dhcp4 = (
import ./networking/dhcp.nix {
inherit
iot
lan
lanIP
routerIP
;
}
);
kea = {
dhcp4 = (
import ./networking/dhcp.nix {
inherit
iot
lan
lanIP
routerIP
;
}
);
};
#########
# dnsmasq config
@@ -113,7 +115,8 @@ in
dnsmasq.enable = true;
kea = {
enable = true;
targets = [ "http://127.0.0.1:8547" ];
openFirewall = true;
targets = [ (builtins.head config.services.kea.dhcp4.settings.control-sockets).socket-name ];
};
};
}; # End of services configuration
+6
View File
@@ -7,6 +7,12 @@
{
enable = true;
settings = {
control-sockets = [
{
socket-type = "unix";
socket-name = "/run/kea/dhcp4-control.sock";
}
];
valid-lifetime = 43200; # 12 hours, in seconds
renew-timer = 1000;
rebind-timer = 2000;