Compare commits

...

3 Commits

Author SHA1 Message Date
b496d14cf7 flake: add go and yt-dlp for refactor
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 23s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2026-01-26 20:34:04 -05:00
c2de1abfd2 flake: check for existance of python project
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 18s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2026-01-26 20:28:23 -05:00
635d5d5113 nix dev environment: update flake and add deno
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 22s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2026-01-21 15:42:47 -05:00
2 changed files with 17 additions and 5 deletions

6
flake.lock generated
View File

@@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1751498133, "lastModified": 1768875095,
"narHash": "sha256-QWJ+NQbMU+NcU2xiyo7SNox1fAuwksGlQhpzBl76g1I=", "narHash": "sha256-dYP3DjiL7oIiiq3H65tGIXXIT1Waiadmv93JS0sS+8A=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d55716bb59b91ae9d1ced4b1ccdea7a442ecbfdb", "rev": "ed142ab1b3a092c4d149245d0c4126a5d7ea00b0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -25,14 +25,26 @@
pkgs.python314 pkgs.python314
pkgs.virtualenv pkgs.virtualenv
pkgs.ffmpeg_6 pkgs.ffmpeg_6
pkgs.deno
pkgs.go
pkgs.yt-dlp
]; ];
shellHook = '' shellHook = ''
if [ -f .env ]; then
set -a
source .env
set +a
fi
if [ ! -d .venv ]; then if [ ! -d .venv ]; then
echo "Creating Python virtual environment in .venv" echo "Creating Python virtual environment in .venv"
python3 -m venv .venv python3 -m venv .venv
fi fi
if compgen -G "app/*.py" > /dev/null; then
.venv/bin/pip install -r ./app/requirements.txt .venv/bin/pip install -r ./app/requirements.txt
source .venv/bin/activate source .venv/bin/activate
fi
''; '';
}; };
}); });