summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2024-12-07 16:13:22 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2024-12-07 16:13:22 +0100
commit9ba181517d169cb95314b7b16ed9f8749931a648 (patch)
tree87f1bbeed884fa88cff579f4641b40f605c62e2c
parent4f25a50275110331c3b724579df9f127db24eb8e (diff)
networking: dhcp: fix kea conf (new id option for subnets)
-rw-r--r--config/networking/services/dhcp.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/networking/services/dhcp.nix b/config/networking/services/dhcp.nix
index 24f003c..4370136 100644
--- a/config/networking/services/dhcp.nix
+++ b/config/networking/services/dhcp.nix
@@ -42,6 +42,7 @@ in {
...
}: {
subnet = "${subnet.prefix}.0/${builtins.toString subnet.prefixLength}";
+ id = lib.toInt (lib.removePrefix "192.168." subnet.prefix);
option-data = [
{
name = "broadcast-address";