summaryrefslogtreecommitdiffstats
path: root/lass/2configs/websites/sqlBackup.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-10-03 13:43:13 +0200
committerlassulus <lassulus@lassul.us>2017-10-03 13:43:13 +0200
commitc54d84b9efe01a7f4f8837b2308b7e2d61f1926f (patch)
treed9574483c465e4bcb0badb91dd358eb8f529416d /lass/2configs/websites/sqlBackup.nix
parent613600914d6c7d8c9d5b1b7bfd1292b863ebd6e6 (diff)
l sqlBackup: set mysql.dataDir to /var/mysql
Diffstat (limited to 'lass/2configs/websites/sqlBackup.nix')
-rw-r--r--lass/2configs/websites/sqlBackup.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/lass/2configs/websites/sqlBackup.nix b/lass/2configs/websites/sqlBackup.nix
index 7cb4b320e..2fffa6cc9 100644
--- a/lass/2configs/websites/sqlBackup.nix
+++ b/lass/2configs/websites/sqlBackup.nix
@@ -3,12 +3,13 @@
{
krebs.secret.files.mysql_rootPassword = {
path = "${config.services.mysql.dataDir}/mysql_rootPassword";
- owner.name = "root";
+ owner.name = "mysql";
source-path = toString <secrets> + "/mysql_rootPassword";
};
services.mysql = {
enable = true;
+ dataDir = "/var/mysql";
package = pkgs.mariadb;
rootPassword = config.krebs.secret.files.mysql_rootPassword.path;
};