fix: stupid error
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
# VOLUMES="/ /home" # default: all from df -P
|
# VOLUMES="/ /home" # default: all from df -P
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
hectic.serivices.server-health = {
|
hectic.services.server-health = {
|
||||||
enable = lib.mkEnableOption "enable serverhelth services";
|
enable = lib.mkEnableOption "enable serverhelth services";
|
||||||
urls = lib.mkOption {
|
urls = lib.mkOption {
|
||||||
type = lib.types.port;
|
type = lib.types.port;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ in {
|
|||||||
lib.types.submodule {
|
lib.types.submodule {
|
||||||
options = {
|
options = {
|
||||||
redisHost = lib.mkOption {
|
redisHost = lib.mkOption {
|
||||||
type = lib.types.host;
|
type = lib.types.str;
|
||||||
default = "localhost";
|
default = "localhost";
|
||||||
example = "localhost";
|
example = "localhost";
|
||||||
description = ''
|
description = ''
|
||||||
@@ -55,6 +55,9 @@ in {
|
|||||||
{
|
{
|
||||||
"name-of-service" = {
|
"name-of-service" = {
|
||||||
environmentPath = config.sops.secrets."name-of-service/environment".path;
|
environmentPath = config.sops.secrets."name-of-service/environment".path;
|
||||||
|
redisDb = 3;
|
||||||
|
redisPort = 42069;
|
||||||
|
redisHost = localhost;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
'';
|
'';
|
||||||
@@ -81,8 +84,8 @@ in {
|
|||||||
EnvironmentFile = supportConfig.environmentPath;
|
EnvironmentFile = supportConfig.environmentPath;
|
||||||
Envitronmet = [
|
Envitronmet = [
|
||||||
"REDIS_HOST=${supportConfig.redisHost}"
|
"REDIS_HOST=${supportConfig.redisHost}"
|
||||||
"REDIS_PORT=${supportConfig.redisPort}"
|
"REDIS_PORT=${builtins.toString supportConfig.redisPort}"
|
||||||
"REDIS_DB=${supportConfig.redisDb}"
|
"REDIS_DB=${builtins.toString supportConfig.redisDb}"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Shutdown configuration
|
# Shutdown configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user