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