use str instead of string type
This commit is contained in:
parent
13e207e636
commit
2b471b0587
@ -14,16 +14,16 @@ in {
|
|||||||
description = "rtmp injest/serve port";
|
description = "rtmp injest/serve port";
|
||||||
};
|
};
|
||||||
rtmpName = lib.mkOption {
|
rtmpName = lib.mkOption {
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
default = "live";
|
default = "live";
|
||||||
description = "the name of the rtmp application";
|
description = "the name of the rtmp application";
|
||||||
};
|
};
|
||||||
hostname = lib.mkOption {
|
hostname = lib.mkOption {
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
description = "the http host to serve hls";
|
description = "the http host to serve hls";
|
||||||
};
|
};
|
||||||
httpLocation = lib.mkOption {
|
httpLocation = lib.mkOption {
|
||||||
type = lib.types.string;
|
type = lib.types.str;
|
||||||
default = "/tmp/stream";
|
default = "/tmp/stream";
|
||||||
description = "the path of the tmp http files";
|
description = "the path of the tmp http files";
|
||||||
};
|
};
|
||||||
@ -67,7 +67,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
cfg.stream.port
|
cfg.port
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user