From a5f2a58ff0a99be45600c0aabdcaf0003606024d Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 12 Feb 2022 15:22:57 +0100 Subject: [PATCH] Enable Kea for Heimnetz --- hosts/carbon/configuration.nix | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/hosts/carbon/configuration.nix b/hosts/carbon/configuration.nix index 338a3b2..6cd4811 100644 --- a/hosts/carbon/configuration.nix +++ b/hosts/carbon/configuration.nix @@ -99,7 +99,12 @@ enable = true; settings = { interfaces-config = { - interfaces = [ "enp1s0.204" ]; + interfaces = [ "enp1s0.201" "enp1s0.204" ]; + }; + lease-database = { + name = "/var/lib/kea/dhcp4.leases"; + persist = true; + type = "memfile"; }; option-def = [ { @@ -141,7 +146,33 @@ } ]; subnet4 = [ + # Heimnetz { + id = 201; + subnet = "10.152.4.0/24"; + pools = [ + { + pool = "10.152.4.100 - 10.152.4.240"; + } + ]; + option-data = [ + { + name = "routers"; + data = "10.152.4.1"; + } + { + name = "domain-name-servers"; + data = "10.152.0.1"; + } + { + name = "domain-name"; + data = "net.clerie.de"; + } + ]; + } + # VoIP + { + id = 204; subnet = "10.152.33.0/24"; pools = [ {