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
|
@ -34,24 +34,6 @@
|
|||
|
||||
users.groups.gitea = { };
|
||||
|
||||
services.postgresql = {
|
||||
package = pkgs.postgresql_14;
|
||||
ensureDatabases = [
|
||||
config.services.forgejo.database.name
|
||||
"nextcloud"
|
||||
];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = config.services.forgejo.database.user;
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
{
|
||||
name = "nextcloud";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
sops.secrets."forgejo-runner-token" = {
|
||||
sopsFile = ../../../.secrets/hetzner/forgejo-runner-token.yaml; # bring your own password file
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue