Compare commits
2 commits
3dc21e88a8
...
ab311adbb6
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | ab311adbb6 | ||
Antoine Martin | a21de59c5d |
|
@ -73,6 +73,10 @@ in {
|
|||
privatePort = 8080;
|
||||
};
|
||||
|
||||
postgresql-backup = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
restic-backup = {
|
||||
enable = true;
|
||||
repo = "b2:hades-backup-alarsyo";
|
||||
|
|
|
@ -95,6 +95,18 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
|
||||
ensureDatabases = ["gitea"];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "git";
|
||||
ensurePermissions."DATABASE gitea" = "ALL PRIVILEGES";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.postgresqlBackup = {
|
||||
databases = ["gitea"];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue