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
831 B 37 lines
1{ config, pkgs, ... }: 2{ 3 clanCore.facts.services.mysql = { 4 secret."mysql_rootPassword" = { }; 5 generator.script = '' 6 cat > "$secrets"/mysql_rootPassword 7 ''; 8 generator.prompt = '' 9 enter mysql root password 10 ''; 11 }; 12 krebs.secret.files.mysql_rootPassword = { 13 path = "${config.services.mysql.dataDir}/mysql_rootPassword"; 14 owner.name = "mysql"; 15 source-path = "${config.krebs.secret.directory}/mysql_rootPassword"; 16 }; 17 18 services.mysql = { 19 enable = true; 20 dataDir = "/var/mysql"; 21 package = pkgs.mariadb; 22 }; 23 24 systemd.services.mysql = { 25 after = [ 26 config.krebs.secret.files.mysql_rootPassword.service 27 ]; 28 partOf = [ 29 config.krebs.secret.files.mysql_rootPassword.service 30 ]; 31 }; 32 33 lass.mysqlBackup = { 34 enable = true; 35 config.all = { }; 36 }; 37}