13 lines
261 B
Nix
13 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'@'%';
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
}
|