From 699c0d1f292d3374d4cf2b027841b5def99c3509 Mon Sep 17 00:00:00 2001 From: blake Date: Fri, 10 Oct 2025 21:49:34 -0500 Subject: [PATCH] 236 current 2025-10-10 21:46:09 25.05.20251006.20c4598 6.12.50 * --- flake.nix | 2 +- modules/homelab/gameservers/minecraft_recpro/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index c2c2da7..0cc7d1a 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 235 current 2025-10-10 21:42:12 25.05.20251006.20c4598 6.12.50 * +# generation: 236 current 2025-10-10 21:46:09 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 1abbcd6..2180aed 100644 --- a/modules/homelab/gameservers/minecraft_recpro/default.nix +++ b/modules/homelab/gameservers/minecraft_recpro/default.nix @@ -87,7 +87,7 @@ in ]; initialScript = pkgs.writeText "minecraft_recpro-init.sql" '' SET @passwd = LOAD_FILE('/run/secrets/minecraft_recpro_db_passwd'); - CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY '@passwd'; + CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY '$(cat ${sec."minecraft_recpro_db_passwd".path})'; GRANT ALL PRIVILEGES ON minecraft_recpro_db.* TO 'minecraft_recpro'@'localhost'; FLUSH PRIVILEGES; '';