Skip to content

Commit de5d95d

Browse files
authored
feat(postgres): add commands configs (#325)
1 parent cc004e8 commit de5d95d

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

extra/services/postgres.nix

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ in
8080
config = {
8181
packages = [
8282
cfg.package
83-
setup-postgres
84-
start-postgres
8583
];
8684

8785
env = [
@@ -98,5 +96,19 @@ in
9896
devshell.startup.setup-postgres.text = lib.optionalString cfg.setupPostgresOnStartup ''
9997
${setup-postgres}/bin/setup-postgres
10098
'';
99+
100+
commands = [
101+
{
102+
name = "setup-postgres";
103+
package = setup-postgres;
104+
help = "Setup the postgres data directory";
105+
}
106+
{
107+
name = "start-postgres";
108+
package = start-postgres;
109+
help = "Start the postgres server";
110+
category = "databases";
111+
}
112+
];
101113
};
102114
}

0 commit comments

Comments
 (0)