Skip to content

Instantly share code, notes, and snippets.

@shackra
Created June 7, 2025 03:02
Show Gist options
  • Save shackra/af38506cfa838c4465ae880fa2d8046c to your computer and use it in GitHub Desktop.
Save shackra/af38506cfa838c4465ae880fa2d8046c to your computer and use it in GitHub Desktop.
ejemplo para proyecto frontend/backend
{
pkgs,
lib,
config,
inputs,
...
}:
{
# https://devenv.sh/basics/
env = {
API_URL = "http://localhost:8000";
};
# https://devenv.sh/packages/
packages = [ ];
# https://devenv.sh/languages/
languages.python = {
enable = true;
directory = "./backend";
venv = {
enable = true;
requirements = ./backend/requirements.txt;
};
};
languages.javascript = {
enable = true;
directory = "./frontend";
npm = {
enable = true;
install.enable = true;
};
};
# https://devenv.sh/scripts/
# scripts.hello.exec = ''
# echo hello from $GREET
# '';
enterShell = ''
export PYTHONPATH=$PYTHONPATH:backend
'';
# https://devenv.sh/tasks/
# tasks = {
# "myproj:setup".exec = "mytool build";
# "devenv:enterShell".after = [ "myproj:setup" ];
# };
# https://devenv.sh/tests/
# enterTest = ''
# echo "Running tests"
# git --version | grep --color=auto "${pkgs.git.version}"
# '';
# https://devenv.sh/git-hooks/
# git-hooks.hooks.shellcheck.enable = true;
# See full reference at https://devenv.sh/reference/options/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment