From 28009de2c55fd97727bed08232aebb6505f34086 Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 28 Apr 2023 10:37:37 +0200 Subject: [PATCH] simplify kea --- nixos/hosts/olympus/dhcp/configuration.nix | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/nixos/hosts/olympus/dhcp/configuration.nix b/nixos/hosts/olympus/dhcp/configuration.nix index 7feb05e..3ea6ed1 100644 --- a/nixos/hosts/olympus/dhcp/configuration.nix +++ b/nixos/hosts/olympus/dhcp/configuration.nix @@ -76,52 +76,39 @@ in { option-data = [ { - space = "dhcp4"; name = "subnet-mask"; - code = 1; data = "255.255.254.0"; } { - space = "dhcp4"; name = "broadcast-address"; - code = 28; data = "10.42.43.255"; } { - space = "dhcp4"; name = "routers"; - code = 3; data = "10.42.42.1"; } { - space = "dhcp4"; name = "domain-name-servers"; - code = 6; - data = "10.42.42.15; 10.42.42.16"; + data = "10.42.42.15, 10.42.42.16"; } { - space = "dhcp4"; name = "domain-name"; - code = 15; data = "${localDomain}"; } { - space = "dhcp4"; name = "domain-search"; - code = 119; data = "${localDomain}"; } ]; + host-reservation-identifiers = [ "hw-address" ]; + subnet4 = [{ id = 1; pools = [{ pool = "10.42.43.1 - 10.42.43.254"; }]; subnet = "10.42.42.0/23"; + reservations = map hostToKea hosts; }]; - - host-reservation-identifiers = [ "hw-address" ]; - reservation-mode = "global"; - reservations = map hostToKea hosts; }; }; };