19 lines
442 B
Nix
19 lines
442 B
Nix
|
# Sources for this configuration:
|
||
|
# - https://github.com/NixOS/nixpkgs/blob/dce84c46d780b20c064d5dfb10d0686e0584a198/nixos/modules/services/web-apps/nextcloud.nix#L1069
|
||
|
|
||
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
services.postgresql = {
|
||
|
enable = true;
|
||
|
package = pkgs.postgresql_15;
|
||
|
ensureDatabases = [ "woodpecker-server" ];
|
||
|
ensureUsers = [
|
||
|
{
|
||
|
name = "woodpecker-server";
|
||
|
ensureDBOwnership = true;
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|