We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
commands
1 parent cc004e8 commit de5d95dCopy full SHA for de5d95d
1 file changed
extra/services/postgres.nix
@@ -80,8 +80,6 @@ in
80
config = {
81
packages = [
82
cfg.package
83
- setup-postgres
84
- start-postgres
85
];
86
87
env = [
@@ -98,5 +96,19 @@ in
98
96
devshell.startup.setup-postgres.text = lib.optionalString cfg.setupPostgresOnStartup ''
99
97
${setup-postgres}/bin/setup-postgres
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
+ ];
113
};
114
}
0 commit comments