wyoming fin
This commit is contained in:
@@ -12,13 +12,13 @@ in
|
||||
|
||||
# set port options
|
||||
faster_whisper_port = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 7706;
|
||||
type = lib.types.str;
|
||||
default = "7706";
|
||||
description = "set port for ${service} (default: ${toString cfg.port}";
|
||||
};
|
||||
piper_port = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 7706;
|
||||
type = lib.types.str;
|
||||
default = "7707";
|
||||
description = "set port for ${service} (default: ${toString cfg.port}";
|
||||
};
|
||||
};
|
||||
@@ -43,14 +43,15 @@ in
|
||||
vanessa = {
|
||||
enable = true;
|
||||
uri = "tcp://0.0.0.0:${cfg.piper_port}";
|
||||
model = "en_US-amy-medium";
|
||||
voice = "en_US-amy-medium";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# # open firewall
|
||||
networking.firewall.allowedTCPPorts = [ cfg.faster_whisper_port cfg.piper_port ];
|
||||
#networking.firewall.allowedTCPPorts = [ cfg.faster_whisper_port cfg.piper_port ];
|
||||
networking.firewall.allowedTCPPorts = [ 7706 7707 ];
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user