Skip to content

Commit a5fb42c

Browse files
committed
chore(config/infra/nix): add ascii art
1 parent 21b45a0 commit a5fb42c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

infra/shell.nix

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{ pkgs ? import <nixpkgs> {}, DB ? "" }:
22

33
let
4+
logoPath = "../libs/shared/assets/logos/cuHacking/logo-icon-wordmark-gradient-green.png";
5+
teamLogoPath = "../libs/shared/assets/logos/cuHacking/team-logos.png";
46
pgPort = "5432";
57
pgUser = "postgres";
68
pgDatabase = "postgres";
@@ -12,6 +14,7 @@ in pkgs.mkShell {
1214
name = "cuhacking-2025-dev-db";
1315

1416
buildInputs = [
17+
pkgs.ascii-image-converter
1518
pkgs.postgresql
1619
];
1720

@@ -56,15 +59,19 @@ in pkgs.mkShell {
5659
echo "DATABASE_URI=postgres://${pgUser}:${pgPassword}@${pgHost}:${pgPort}/${pgDatabase}"
5760
echo "***************************************************"
5861
echo ""
62+
ascii-image-converter ${logoPath} --color -f -b
63+
echo "Leave None Behind Regardless of Our Development Cost 💚⌨🐧🚀🔥"
5964
}
6065
6166
stop_db() {
6267
echo "Stopping PostgreSQL..."
6368
if pg_ctl status -D "$PGDATA" > /dev/null 2>&1; then
6469
pg_ctl stop -D "$PGDATA"
65-
echo "PostgreSQL stopped."
70+
ascii-image-converter ${teamLogoPath} --color -f -b
71+
echo "PostgreSQL stopped. 💤🛌"
6672
else
67-
echo "PostgreSQL is not running."
73+
ascii-image-converter ${teamLogoPath} --color -f -b
74+
echo "PostgreSQL is not running. 💤🛌"
6875
fi
6976
}
7077

0 commit comments

Comments
 (0)