237 current 2025-10-10 21:49:29 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# flake for blakes nixos config
|
# flake for blakes nixos config
|
||||||
# define new devices in outputs
|
# define new devices in outputs
|
||||||
# generation: 236 current 2025-10-10 21:46:09 25.05.20251006.20c4598 6.12.50 *
|
# generation: 237 current 2025-10-10 21:49:29 25.05.20251006.20c4598 6.12.50 *
|
||||||
{
|
{
|
||||||
description = "blakes nix config";
|
description = "blakes nix config";
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|||||||
@@ -86,8 +86,7 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
initialScript = pkgs.writeText "minecraft_recpro-init.sql" ''
|
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 'IKNOWTHISISBADIJUSTNEEDTHISTOWORKRNPLS';
|
||||||
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';
|
GRANT ALL PRIVILEGES ON minecraft_recpro_db.* TO 'minecraft_recpro'@'localhost';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user