From 738c9879cb3d390a7109f63bff09c2ab7c731a3a Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Fri, 20 Mar 2026 17:39:02 +0100 Subject: [PATCH] Add PostgreSQL support and JDBC drivers to Minecraft configuration --- nix-system-configs/modules/system/minecraft.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nix-system-configs/modules/system/minecraft.nix b/nix-system-configs/modules/system/minecraft.nix index f4d76a5..7c9bb7b 100644 --- a/nix-system-configs/modules/system/minecraft.nix +++ b/nix-system-configs/modules/system/minecraft.nix @@ -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"; }; }