Add tftpServer option

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

View file

@ -25,6 +25,10 @@ in {
omm = mkOption { omm = mkOption {
type = types.str; type = types.str;
}; };
tftpServer = mkOption {
type = types.nullOr types.str;
default = null;
};
reservations = mkOption { reservations = mkOption {
type = with types; listOf (submodule { type = with types; listOf (submodule {
options = { options = {
@ -126,7 +130,10 @@ in {
name = "magic_str"; name = "magic_str";
data = "OpenMobilitySIP-DECT"; data = "OpenMobilitySIP-DECT";
} }
]; ] ++ lib.optional (!isNull cfg.tftpServer) {
name = "tftp-server-name";
data = cfg.tftpServer;
};
reservations = map (r: { reservations = map (r: {
hostname = r.name; hostname = r.name;