file cleanup, conditional motd
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
service = "wyoming";
|
||||
cfg = config.homelab.${service};
|
||||
sec = config.sops.secrets;
|
||||
homelab = config.homelab;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.homelab.${service} = {
|
||||
enable = lib.mkEnableOption "enables ${service}";
|
||||
|
||||
@@ -24,7 +26,6 @@ in
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# enable the ${service} service
|
||||
services.${service} = {
|
||||
faster-whisper = {
|
||||
@@ -49,9 +50,7 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
# # open firewall
|
||||
#networking.firewall.allowedTCPPorts = [ cfg.faster_whisper_port cfg.piper_port ];
|
||||
networking.firewall.allowedTCPPorts = [ 7706 7707 ];
|
||||
|
||||
# open firewall
|
||||
networking.firewall.allowedTCPPorts = [cfg.faster_whisper_port cfg.piper_port];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user