aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devenv.nix27
1 files changed, 21 insertions, 6 deletions
diff --git a/devenv.nix b/devenv.nix
index a5e8dda..213c98b 100644
--- a/devenv.nix
+++ b/devenv.nix
@@ -2,17 +2,14 @@
{
# https://devenv.sh/basics/
- env.GREET = "devenv";
- cachix.enable = false;
# https://devenv.sh/packages/
packages = [ pkgs.git ];
# https://devenv.sh/scripts/
- scripts.hello.exec = "echo hello from $GREET";
enterShell = ''
- hello
git --version
+ echo "devenv up : to execute the epq chat application"
'';
# https://devenv.sh/tests/
@@ -41,7 +38,25 @@
pre-commit.hooks.commitizen.enable = true;
# https://devenv.sh/processes/
- # processes.ping.exec = "ping example.com";
-
+ processes = {
+ epqchat-dev.exec = "${pkgs.maven}/bin/mvn spring-boot:run";
+ };
+ services.mysql = {
+ enable = true;
+ package = pkgs.mariadb;
+ initialDatabases = [
+ { name = "epqchat"; }
+ ];
+ ensureUsers = [
+ {
+ name = "epqchatuser";
+ password = "epqlevel3artifact";
+ ensurePermissions = {
+ "epqchat.*" = "ALL PRIVILEGES";
+ "*.*" = "SELECT, LOCK TABLES";
+ };
+ }
+ ];
+ };
# See full reference at https://devenv.sh/reference/options/
}