Skip to content

Instantly share code, notes, and snippets.

@pinpox
Created October 25, 2020 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinpox/fe719c3bef858c46937b2880045c39f5 to your computer and use it in GitHub Desktop.
Save pinpox/fe719c3bef858c46937b2880045c39f5 to your computer and use it in GitHub Desktop.
services.postgresql = {
enable = true;
package = pkgs.postgresql_11;
ensureDatabases = [
"sourcehut_meta"
"sourcehut_git"
];
ensureUsers = [
{
name = "sourcehut_user";
ensurePermissions = {
"DATABASE sourcehut_meta" = "ALL PRIVILEGES";
"DATABASE sourcehut_git" = "ALL PRIVILEGES";
};
}
];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment