This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / websites / sqlBackup.nix
836 B 35 lines
1{ config, pkgs, ... }: 2{ 3 clan.core.vars.generators.mysql = { 4 files."mysql_rootPassword" = { }; 5 prompts.password.description = "enter mysql root password"; 6 script = '' 7 cat "$prompts"/password > "$out"/mysql_rootPassword 8 ''; 9 }; 10 krebs.secret.files.mysql_rootPassword = { 11 path = "${config.services.mysql.dataDir}/mysql_rootPassword"; 12 owner.name = "mysql"; 13 source-path = "${config.krebs.secret.directory}/mysql_rootPassword"; 14 }; 15 16 services.mysql = { 17 enable = true; 18 dataDir = "/var/mysql"; 19 package = pkgs.mariadb; 20 }; 21 22 systemd.services.mysql = { 23 after = [ 24 config.krebs.secret.files.mysql_rootPassword.service 25 ]; 26 partOf = [ 27 config.krebs.secret.files.mysql_rootPassword.service 28 ]; 29 }; 30 31 lass.mysqlBackup = { 32 enable = true; 33 config.all = { }; 34 }; 35}