move data-hoarder postgres to registry

This commit is contained in:
Markus Schmidl 2023-11-25 21:39:32 +01:00
parent a278d40551
commit 0b67c90d2a
6 changed files with 14 additions and 29 deletions

View File

@ -2,13 +2,7 @@
TLMS.chemo = {
inherit (registry.grpc-data_accumulator-chemo) host port;
enable = true;
database = {
host = "127.0.0.1";
port = config.services.postgresql.port;
passwordFile = config.sops.secrets.postgres_password.path;
user = "tlms";
database = "tlms";
};
database = registry.postgres;
GRPC = [
{
inherit (registry.grpc-chemo-bureaucrat) host port;

View File

@ -2,13 +2,7 @@
TLMS.dataAccumulator = {
inherit (registry.port-data_accumulator) host port;
enable = true;
database = {
host = "127.0.0.1";
port = config.services.postgresql.port;
passwordFile = config.sops.secrets.postgres_password.path;
user = "tlms";
database = "tlms";
};
database = registry.postgres;
GRPC = [{
inherit (registry.grpc-data_accumulator-chemo) host port;
name = "CHEMO";

View File

@ -2,13 +2,7 @@
TLMS.datacare = {
enable = true;
http = registry.port-datacare;
database = {
host = "127.0.0.1";
port = config.services.postgresql.port;
user = "tlms";
database = "tlms";
passwordFile = config.sops.secrets.postgres_password.path;
};
database = registry.postgres;
allowedIpsExport = [ "10.13.37.0/24" ];
saltFile = config.sops.secrets.postgres_password_hash_salt.path;
user = "datacare";

View File

@ -1,9 +1,9 @@
{ lib, pkgs, config, inputs, self, ... }: {
{ lib, pkgs, config, inputs, self, registry, ... }: {
services.postgresql = {
inherit (registry.postgres) port;
enable = true;
enableTCPIP = true;
port = 5432;
authentication = let
senpai-ip =
self.nixosConfigurations.notice-me-senpai.config.deployment-TLMS.net.wg.addr4;

View File

@ -3,12 +3,7 @@
inherit (registry.port-trekkie) host port;
enable = true;
saltPath = config.sops.secrets.postgres_password_hash_salt.path;
database = {
host = "127.0.0.1";
port = config.services.postgresql.port;
passwordFile = config.sops.secrets.postgres_password.path;
user = "tlms";
};
database = registry.postgres;
redis = registry.redis-trekkie;
grpc = registry.grpc-trekkie-chemo;
logLevel = "info";

View File

@ -52,4 +52,12 @@ rec {
host = "localhost";
port = 6379;
};
postgres = {
host = "127.0.0.1";
user = "tlms";
database = "tlms";
port = 5432;
passwordFile = "/run/secrets/postgres_password";
};
}