From 63129b076fedca0598ef3c6ab1cc704181bc174a Mon Sep 17 00:00:00 2001 From: osbm Date: Thu, 31 Jul 2025 18:27:45 +0300 Subject: [PATCH] set port --- modules/services/wanikani-stats/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/services/wanikani-stats/default.nix b/modules/services/wanikani-stats/default.nix index bbb71ac..1c0efaf 100644 --- a/modules/services/wanikani-stats/default.nix +++ b/modules/services/wanikani-stats/default.nix @@ -19,7 +19,9 @@ let ]; text = '' #!/usr/bin/env bash - exec streamlit run /path/to/your/wanikani_stats_app.py + echo "Starting WaniKani Stats Streamlit app..." + cat ${./app.py} + exec streamlit run ${./app.py} --server.port ${toString config.services.wanikani-stats.port} ''; }; in @@ -35,6 +37,12 @@ in default = "/var/lib/wanikani-logs"; description = "Directory to get the log archives"; }; + + port = lib.mkOption { + type = lib.types.port; + default = 8501; + description = "Port for the WaniKani Stats service"; + }; }; config = lib.mkIf config.services.wanikani-stats.enable {