Add PostgreSQL support and JDBC drivers to Minecraft configuration

This commit is contained in:
Root User 2026-03-20 17:39:02 +01:00
parent a01ca0de92
commit 738c9879cb
Signed by: root
GPG key ID: 087F0A95E5766D72

View file

@ -54,6 +54,10 @@ in {
# 24454 - https://modrepo.de/minecraft/voicechat/wiki/server_setup_self_hosted !!!
# This is the VoiceChat mod in Minecraft
# Install psql
services.postgresql = {
enable = true;
};
# ---------------------------------------------------------------------------
# Minecraft server configuration (nix-minecraft)
# ---------------------------------------------------------------------------
@ -219,6 +223,11 @@ in {
# The nix-minecraft module creates the `minecraft` user/group automatically.
users.users.minecraftprg.extraGroups = ["minecraft"];
environment.systemPackages = with pkgs; [
postgresql_jdbc
mysql-connector-j
];
system.stateVersion = "25.11";
};
}