-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.nix
More file actions
27 lines (23 loc) · 710 Bytes
/
dev.nix
File metadata and controls
27 lines (23 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
# Environment name (optional)
name = "dev-environment";
# Which nixpkgs channel to use
channel = "stable-23.11"; # or "unstable"
# Specify the packages you need in your development environment
buildInputs = [
pkgs.nodejs_20
pkgs.docker
pkgs.firebase-tools
pkgs.redis
pkgs.postgresql
];
# Set environment variables
shellHook = ''
export SOME_ENV_VAR="hello"
export NODE_ENV="development"
export DATABASE_URL="postgres://bune-cms:bune-cms@localhost:5432/user-svc"
export REDIS_URL="redis://localhost:6379" # Redis connection string
export PUBSUB_EMULATOR_HOST="localhost:8085" # Pub/Sub Emulator
'';
}