diff --git a/flake.nix b/flake.nix index 101cf20..d8732cc 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 216 current 2025-10-10 04:43:06 25.05.20251006.20c4598 6.12.50 * +# generation: 217 current 2025-10-10 20:18: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 9349d3f..9207739 100644 --- a/modules/homelab/gameservers/minecraft_recpro/default.nix +++ b/modules/homelab/gameservers/minecraft_recpro/default.nix @@ -81,13 +81,14 @@ in ensureDatabases = [ "minecraft_recpro_db" ]; ensureUsers = [ { - name = "minecraft"; + name = "minecraft_recpro"; ensurePermissions = { "minecraft_recpro_db.*" = "ALL PRIVILEGES"; }; } ]; initialScript = pkgs.writeText "minecraft_recpro-init.sql" '' CREATE DATABASE IF NOT EXISTS minecraft_recpro; - CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY '$(cat ${config.sops.secrets.minecraft_recpro_db_passwd.path})'; + CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' + IDENTIFIED BY LOAD_FILE('/run/secrets/minecraft_recpro_db_passwd'); GRANT ALL PRIVILEGES ON minecraft_recpro.* TO 'minecraft_recpro'@'localhost'; FLUSH PRIVILEGES; ''; @@ -123,8 +124,8 @@ in mode = "0400"; }; "minecraft_recpro_db_passwd" = { - owner = "minecraft"; - group = "minecraft"; +# owner = "minecraft"; +# group = "minecraft"; }; };