diff --git a/modules/homelab/gameservers/minecraft_recpro/default.nix b/modules/homelab/gameservers/minecraft_recpro/default.nix index 40e741d..34a9b03 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" '' CREATE DATABASE IF NOT EXISTS minecraft_recpro_db; - CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY LOAD_FILE('/run/secrets/minecraft_recpro_db_passwd'); + CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY $(cat ${config.sops.secrets."minecraft_recpro_db_passwd".path}); GRANT ALL PRIVILEGES ON minecraft_recpro_db.* TO 'minecraft_recpro'@'localhost'; FLUSH PRIVILEGES; '';