diff --git a/machines/valkyrie/kea/default.nix b/machines/valkyrie/kea/default.nix index ac27357..eaaeff5 100644 --- a/machines/valkyrie/kea/default.nix +++ b/machines/valkyrie/kea/default.nix @@ -15,41 +15,41 @@ socket-name = "/run/kea/kea-dhcp4.socket"; }; - # option-def = [ - # { - # space = "ubnt"; - # name = "unifi-address"; - # code = 1; - # type = "ipv4-address"; - # } - # ]; + option-def = [ + { + space = "ubnt"; + name = "unifi-address"; + code = 1; + type = "ipv4-address"; + } + ]; - # client-classes = [ - # { - # name = "ubnt"; - # test = "substring(option[60].hex,0,4) == 'ubnt'"; - # option-data = [ - # { - # space = "ubnt"; - # name = "vendor-class-identifier"; - # code = 60; - # data = "ubnt"; - # } - # { - # name = "vendor-encapsulated-options"; - # code = 43; - # } - # ]; - # option-def = [ - # { - # name = "vendor-encapsulated-options"; - # code = 43; - # type = "empty"; - # encapsulate = "ubnt"; - # } - # ]; - # } - # ]; + client-classes = [ + { + name = "ubnt"; + test = "substring(option[60].hex,0,4) == 'ubnt'"; + option-data = [ + { + space = "dhcp4"; + name = "vendor-class-identifier"; + code = 60; + data = "ubnt"; + } + { + name = "vendor-encapsulated-options"; + code = 43; + } + ]; + option-def = [ + { + name = "vendor-encapsulated-options"; + code = 43; + type = "empty"; + encapsulate = "ubnt"; + } + ]; + } + ]; interfaces-config = { interfaces = [ "eth0" ]; @@ -75,12 +75,12 @@ name = "domain-name-servers"; data = "10.0.0.206"; } - # { - # space = "ubnt"; - # name = "unifi-address"; - # code = 1; - # data = "10.0.0.207"; - # } + { + space = "ubnt"; + name = "unifi-address"; + code = 1; + data = "10.0.0.207"; + } ]; reservations = [