-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.nix
More file actions
35 lines (29 loc) · 576 Bytes
/
shell.nix
File metadata and controls
35 lines (29 loc) · 576 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
28
29
30
31
32
33
34
35
{ pkgs ? import <nixpkgs> {} }:
let
# Common environment variables
envVars = {
NODE_ENV = "development";
};
in pkgs.mkShell {
buildInputs = with pkgs; [
docker
docker-compose
nodejs_18
nodemon
nodePackages.ts-node
];
shellHook = ''
echo "Sync packages"
uv sync
# Activate venv
if [ -d ".venv" ]; then
source .venv/bin/activate
else
echo "Virtual environment not found, creating one..."
fi
alias python='python3'
alias dev1='python3 main.py'
alias dev='nodemon'
which python3
'';
}