dotfiles/modules/config/instances/config/postgresql.nix

23 lines
369 B
Nix
Executable file

{ instancesFunctions }:
let
inherit (instancesFunctions)
servicePath
sopsPath
;
postgresLabel = "PostgreSQL";
postgresName = "postgres";
in
{
label = postgresLabel;
name = postgresName;
sops = {
path0 = "${sopsPath}/${postgresName}";
};
paths = {
path0 = "${servicePath}/${postgresLabel}";
};
ports = {
port0 = 5432;
};
}