Forget setting the database for now...
This commit is contained in:
parent
e8ad5ae2ca
commit
078a150080
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue