-
-
Save pinpox/fe719c3bef858c46937b2880045c39f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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