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