Skip to content

Commit

Permalink
feat(postgres): add commands configs (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmistman authored Dec 31, 2024
1 parent cc004e8 commit de5d95d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions extra/services/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ in
config = {
packages = [
cfg.package
setup-postgres
start-postgres
];

env = [
Expand All @@ -98,5 +96,19 @@ in
devshell.startup.setup-postgres.text = lib.optionalString cfg.setupPostgresOnStartup ''
${setup-postgres}/bin/setup-postgres
'';

commands = [
{
name = "setup-postgres";
package = setup-postgres;
help = "Setup the postgres data directory";
}
{
name = "start-postgres";
package = start-postgres;
help = "Start the postgres server";
category = "databases";
}
];
};
}

0 comments on commit de5d95d

Please sign in to comment.