l sqlBackup: set mysql.dataDir to /var/mysql
This commit is contained in:
parent
613600914d
commit
c54d84b9ef
@ -3,12 +3,13 @@
|
|||||||
{
|
{
|
||||||
krebs.secret.files.mysql_rootPassword = {
|
krebs.secret.files.mysql_rootPassword = {
|
||||||
path = "${config.services.mysql.dataDir}/mysql_rootPassword";
|
path = "${config.services.mysql.dataDir}/mysql_rootPassword";
|
||||||
owner.name = "root";
|
owner.name = "mysql";
|
||||||
source-path = toString <secrets> + "/mysql_rootPassword";
|
source-path = toString <secrets> + "/mysql_rootPassword";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.mysql = {
|
services.mysql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
dataDir = "/var/mysql";
|
||||||
package = pkgs.mariadb;
|
package = pkgs.mariadb;
|
||||||
rootPassword = config.krebs.secret.files.mysql_rootPassword.path;
|
rootPassword = config.krebs.secret.files.mysql_rootPassword.path;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user