diff --git a/flake.nix b/flake.nix index 06ee726..b02ef56 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 228 current 2025-10-10 21:22:38 25.05.20251006.20c4598 6.12.50 * +# generation: 229 current 2025-10-10 21:25:49 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/modules/homelab/gameservers/minecraft_recpro/default.nix b/modules/homelab/gameservers/minecraft_recpro/default.nix index d495ccb..c701d89 100644 --- a/modules/homelab/gameservers/minecraft_recpro/default.nix +++ b/modules/homelab/gameservers/minecraft_recpro/default.nix @@ -86,7 +86,8 @@ in } ]; initialScript = pkgs.writeText "minecraft_recpro_init.sql" '' - ALTER USER 'minecraft_recpro'@'localhost' IDENTIFIED VIA sql_native_password USING PASSWORD'IKNOWTHISISBADIJUSTNEEDITTOWORK'; + CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY 'IKNOWTHISISBADIJUSTNEEDITTOWORK'; + GRANT ALL PRIVILEGES ON minecraft_recpro_db.* TO 'minecraft_recpro'@'localhost'; FLUSH PRIVILEGES; ''; };