Compare commits
2 commits
ab311adbb6
...
3dc21e88a8
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | 3dc21e88a8 | ||
Antoine Martin | fe66278f25 |
|
@ -95,18 +95,8 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
|
||||
ensureDatabases = ["gitea"];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "git";
|
||||
ensurePermissions."DATABASE gitea" = "ALL PRIVILEGES";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# NOTE: no need to use postgresql.ensureDatabases because the gitea module
|
||||
# takes care of this automatically
|
||||
services.postgresqlBackup = {
|
||||
databases = ["gitea"];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue