use str instead of string type

This commit is contained in:
zuckerberg 2021-05-16 18:19:23 -04:00
parent 13e207e636
commit 2b471b0587

View File

@ -14,16 +14,16 @@ in {
description = "rtmp injest/serve port";
};
rtmpName = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
default = "live";
description = "the name of the rtmp application";
};
hostname = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
description = "the http host to serve hls";
};
httpLocation = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
default = "/tmp/stream";
description = "the path of the tmp http files";
};
@ -67,7 +67,7 @@ in {
};
networking.firewall.allowedTCPPorts = [
cfg.stream.port
cfg.port
];
};
}