mirror of
https://github.com/juspay/services-flake.git
synced 2024-09-11 12:26:04 +03:00
24 lines
553 B
Nix
24 lines
553 B
Nix
{ pkgs, config, ... }: {
|
|
|
|
services.pgadmin."pgad1" = {
|
|
enable = true;
|
|
initialEmail = "email@gmail.com";
|
|
initialPassword = "password";
|
|
};
|
|
|
|
settings.processes.test =
|
|
let
|
|
cfg = config.services.pgadmin."pgad1";
|
|
in
|
|
{
|
|
command = pkgs.writeShellApplication {
|
|
runtimeInputs = [ cfg.package pkgs.curl pkgs.gnugrep ];
|
|
text = ''
|
|
curl http://localhost:5050/misc/ping | grep "PING"
|
|
'';
|
|
name = "pgadmin-test";
|
|
};
|
|
depends_on."pgad1".condition = "process_healthy";
|
|
};
|
|
}
|