Pin PostgreSQL to v15 for NixOS 24.11 upgrade
Prevents automatic upgrade to PostgreSQL 16 when upgrading NixOS. This allows a safer two-step approach: upgrade NixOS first, then pg_upgrade later. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
42ebc501c3
commit
db7b05a46e
|
|
@ -1,5 +1,5 @@
|
||||||
# Development services module - Matrix, Forgejo, and Slack bridge
|
# Development services module - Matrix, Forgejo, and Slack bridge
|
||||||
{ config, pkgs-unstable, lib, ... }:
|
{ config, pkgs, pkgs-unstable, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
|
@ -99,8 +99,10 @@ in
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# PostgreSQL for Forgejo and bridge services (Matrix uses RocksDB)
|
# PostgreSQL for Forgejo and bridge services (Matrix uses RocksDB)
|
||||||
|
# Pin to v15 to prevent auto-upgrade to v16 in NixOS 24.11
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.postgresql_15;
|
||||||
ensureDatabases = [
|
ensureDatabases = [
|
||||||
"forgejo"
|
"forgejo"
|
||||||
] ++ optional cfg.slackBridge.enable "mautrix_slack";
|
] ++ optional cfg.slackBridge.enable "mautrix_slack";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue