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;