feat(services): add dedicated PostgreSQL module
Introduce a dedicated PostgreSQL configuration module to the system. Adjust Nextcloud and Forgejo configurations to utilize this new module.
This commit is contained in:
parent
6d2951155c
commit
af5c62eb4b
4 changed files with 28 additions and 26 deletions
|
@ -5,6 +5,7 @@
|
|||
environment.systemPackages = with pkgs; [ ffmpeg ];
|
||||
|
||||
environment.etc."nextcloud-admin-pass".text = "test123";
|
||||
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud30;
|
||||
|
@ -44,4 +45,16 @@
|
|||
"OC\\Preview\\XBitmap"
|
||||
];
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
ensureDatabases = [
|
||||
"nextcloud"
|
||||
];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "nextcloud";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue