nix-config/hosts/common/optional/mysql.nix

14 lines
189 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
services.mysql = {
enable = true;
package = pkgs.mariadb;
};
environment.persistence = {
"/persist".directories = [
"/var/lib/mysql"
];
};
}