Forget setting the database for now...

This commit is contained in:
niten 2023-12-10 15:01:07 -08:00
parent e8ad5ae2ca
commit 078a150080
1 changed files with 5 additions and 12 deletions

View File

@ -126,22 +126,15 @@ in {
hostname hostname
]) other-hosts; ]) other-hosts;
systemd = {
tmpfiles.rules = [ "d ${cfg.state-directory} 0700 root root - -" ];
services.kea-dhcp4-server.serviceConfig.ReadWritePaths =
[ cfg.state-directory ];
};
services.kea.dhcp4 = { services.kea.dhcp4 = {
enable = true; enable = true;
settings = { settings = {
interfaces-config.interfaces = cfg.dhcp-interfaces; interfaces-config.interfaces = cfg.dhcp-interfaces;
lease-database = { # lease-database = {
name = "${cfg.state-directory}/dhcp4.leases"; # name = "${cfg.state-directory}/dhcp4.leases";
type = "memfile"; # type = "memfile";
persist = true; # persist = true;
}; # };
valid-lifetime = 4000; valid-lifetime = 4000;
rebind-timer = 2000; rebind-timer = 2000;
renew-timer = 1000; renew-timer = 1000;