From 78dcb215cceab98750145f52dae678c1a60c7f7e Mon Sep 17 00:00:00 2001 From: yukkop Date: Sun, 31 Aug 2025 15:49:04 +0000 Subject: [PATCH] fix: stupid error --- nixos/module/hectic/service/server-health.nix | 2 +- nixos/module/hectic/service/support-bot.nix | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/nixos/module/hectic/service/server-health.nix b/nixos/module/hectic/service/server-health.nix index 249f789..626ecf7 100644 --- a/nixos/module/hectic/service/server-health.nix +++ b/nixos/module/hectic/service/server-health.nix @@ -15,7 +15,7 @@ # VOLUMES="/ /home" # default: all from df -P in { options = { - hectic.serivices.server-health = { + hectic.services.server-health = { enable = lib.mkEnableOption "enable serverhelth services"; urls = lib.mkOption { type = lib.types.port; diff --git a/nixos/module/hectic/service/support-bot.nix b/nixos/module/hectic/service/support-bot.nix index 365c3d5..b5c79f4 100644 --- a/nixos/module/hectic/service/support-bot.nix +++ b/nixos/module/hectic/service/support-bot.nix @@ -15,7 +15,7 @@ in { lib.types.submodule { options = { redisHost = lib.mkOption { - type = lib.types.host; + type = lib.types.str; default = "localhost"; example = "localhost"; description = '' @@ -55,6 +55,9 @@ in { { "name-of-service" = { environmentPath = config.sops.secrets."name-of-service/environment".path; + redisDb = 3; + redisPort = 42069; + redisHost = localhost; }; }; ''; @@ -81,8 +84,8 @@ in { EnvironmentFile = supportConfig.environmentPath; Envitronmet = [ "REDIS_HOST=${supportConfig.redisHost}" - "REDIS_PORT=${supportConfig.redisPort}" - "REDIS_DB=${supportConfig.redisDb}" + "REDIS_PORT=${builtins.toString supportConfig.redisPort}" + "REDIS_DB=${builtins.toString supportConfig.redisDb}" ]; # Shutdown configuration