Add tftpServer option

This commit is contained in:
Jakob Lechner 2025-08-03 01:55:23 +02:00
parent 4b99a84e1b
commit ddf3659326

View file

@ -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;