Add tftpServer option
This commit is contained in:
parent
4b99a84e1b
commit
882abe549d
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue