12 lines
261 B
Nix
12 lines
261 B
Nix
{ pkgs, lib, ... }: {
|
|
|
|
services.mysql = {
|
|
enable = true;
|
|
package = pkgs.mysql;
|
|
initialScript = pkgs.writeText "initScript" ''
|
|
CREATE USER 'admin'@'%' IDENTIFIED BY 'admin';
|
|
GRANT ALL PRIVILEGES ON * . * TO 'admin'@'%';
|
|
'';
|
|
};
|
|
|
|
}
|