mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
test(OK):sql_study
style:env
This commit is contained in:
17
modules/services/mysql.nix
Normal file
17
modules/services/mysql.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ hostname, lib, pkgs, ... }:
|
||||
with lib; let
|
||||
inherit (import ../../hosts/${hostname}/env.nix) Database-Use-Case;
|
||||
in
|
||||
{
|
||||
config = mkIf Database-Use-Case {
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mysql84;
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.dbeaver-bin
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user