Add tftpServer option
This commit is contained in:
parent
4b99a84e1b
commit
21b5e5eda3
1 changed files with 8 additions and 1 deletions
|
|
@ -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 false {
|
||||
name = "tftp-server-name";
|
||||
data = cfg.tftpServer;
|
||||
};
|
||||
|
||||
reservations = map (r: {
|
||||
hostname = r.name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue