diff --git a/configs/workhorse/mysql.nix b/configs/workhorse/mysql.nix index d0f8391..9b965aa 100644 --- a/configs/workhorse/mysql.nix +++ b/configs/workhorse/mysql.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, ... }: { +{ pkgs, lib, config, ... }: { services.mysql = { enable = true; @@ -9,4 +9,16 @@ ''; }; + services.mysqlBackup = { + enable = true; + databases = [ + "property" + ]; + user = "root"; + }; + + backup.dirs = [ + config.services.mysqlBackup.location + ]; + }