This commit is contained in:
Sakooooo 2024-12-31 23:04:40 +04:00
parent 150c55a108
commit aead3d734e
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
with lib; with lib;
let cfg = config.void.server.postgresql; let cfg = config.void.server.postgresql;
in { in {
@ -7,7 +7,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.postgresql = { services.postgresql = {
enable = true; enable = true;
package = postgresql_17_jit; package = pkgs.postgresql_17_jit;
ensureDatabases = [ "forgejo" ]; ensureDatabases = [ "forgejo" ];
ensureUsers = [ ensureUsers = [
{ {