From 882abe549de885c23228edc8ab2a8e945a2cc9ac Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Sun, 3 Aug 2025 01:55:23 +0200 Subject: [PATCH] Add tftpServer option --- nix/modules/dhcp.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nix/modules/dhcp.nix b/nix/modules/dhcp.nix index 05d7227..1d82a44 100644 --- a/nix/modules/dhcp.nix +++ b/nix/modules/dhcp.nix @@ -25,6 +25,10 @@ in { omm = mkOption { type = types.str; }; + tftpServer = mkOption { + type = types.nullOr types.str; + default = null; + }; reservations = mkOption { type = with types; listOf (submodule { options = { @@ -126,7 +130,10 @@ in { name = "magic_str"; data = "OpenMobilitySIP-DECT"; } - ]; + ] ++ lib.optional (!isNull cfg.tftpServer) { + name = "tftp-server-name"; + data = cfg.tftpServer; + }; reservations = map (r: { hostname = r.name;