nix/modules/services/mysql/default.nix

21 lines
305 B
Nix
Raw Normal View History

2025-01-17 22:52:42 +01:00
{
pkgs,
config,
lib,
...
}: {
options = {
mysql.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.mysql.enable {
services.mysql = {
enable = true;
package = pkgs.mariadb;
};
environment.systemPackages = with pkgs; [
mysql-workbench
];
};
}