fixed env variables for clicky-bunty

This commit is contained in:
Tassilo - 2022-05-31 21:12:42 +02:00
parent 54a28cb030
commit d6451b9385
Signed by: revol-xut
GPG Key ID: 4F56FF7759627D07

View File

@ -18,13 +18,13 @@ in
wantedBy = [ "multi-user.target" ];
script = ''
export SALT_PATH=$(cat ${config.sops.secrets.postgres_password_hash_salt.path})
export POSTGRES_PASSWORD=$(cat ${config.sops.secrets.postgres_password.path})
exec ${pkgs.clicky-bunty-server}/bin/clicky-bunty-server --host 127.0.0.1 --port ${toString port}&
'';
environment = {
"POSTGRES" = "localhost:5432";
"SALT_PATH" = config.sops.secrets.postgres_password_hash_salt.path;
"POSTGRES_PASSWORD" = config.sops.secrets.postgres_password.path;
};
serviceConfig = {
Type = "forking";