nixos/forgejo: remove `postgresql_15` permission work-around

This is no longer necessary as of
ccfe07c3168109567b98462533f7ddf14c7ba18d.

Previously: b8585a119ce5c28754267f349107304117041083.

authored by

emilylange and committed by
Jörg Thalheim
b3e8dae7 a350ac03

-11
-11
nixos/modules/services/misc/forgejo.nix
··· 436 436 ]; 437 437 }; 438 438 439 - # Work around 'pq: permission denied for schema public' with postgres v15, until a 440 - # solution for `services.postgresql.ensureUsers` is found. 441 - # See https://github.com/NixOS/nixpkgs/issues/216989 442 - systemd.services.postgresql.postStart = lib.mkIf ( 443 - usePostgresql 444 - && cfg.database.createDatabase 445 - && lib.strings.versionAtLeast config.services.postgresql.package.version "15.0" 446 - ) (lib.mkAfter '' 447 - $PSQL -tAc 'ALTER DATABASE "${cfg.database.name}" OWNER TO "${cfg.database.user}";' 448 - ''); 449 - 450 439 services.mysql = optionalAttrs (useMysql && cfg.database.createDatabase) { 451 440 enable = mkDefault true; 452 441 package = mkDefault pkgs.mariadb;