chore: more changes to flake.nix

This commit is contained in:
0xWheatyz 2025-12-06 17:41:59 -05:00
parent 93981986d8
commit b51f0596a3

View File

@ -14,14 +14,15 @@
# Define Python version and packages # Define Python version and packages
pythonVersion = "python311"; # You can change this to python310, python312, etc. pythonVersion = "python311"; # You can change this to python310, python312, etc.
pythonEnv = pkgs.${pythonVersion}; # Get the specific Python environment
pythonPackages = ps: with ps; [ pythonPackages = ps: with ps; [
# Core Python # Core Python
pkgs.${pythonVersion} #pkgs.${pythonVersion}
# Common development tools pythonEnv.pkgs.pip
pip pythonEnv.pkgs.setuptools
setuptools pythonEnv.pkgs.wheel
wheel
# Example useful packages (uncomment and add as needed) # Example useful packages (uncomment and add as needed)
# black # Code formatter # black # Code formatter
@ -41,17 +42,7 @@
# Environment variables you might want to set # Environment variables you might want to set
shellHook = '' shellHook = ''
echo "Welcome to the Python development shell!" echo "Welcome to the Python development shell!"
export PATH="$HOME/.local/bin:$PATH" # Example: if you install packages globally via pip (not recommended with Nix) export NIX_PROJECT_SHELL="SPARC"
# If you are using a specific Python version managed by Nix, you might
# want to ensure it's in your PATH. The above `packages` should handle this.
# You can also set up virtual environments here if you prefer,
# although Nix aims to manage dependencies directly.
# Example: using venvwrapper if installed
# if [ -f "$(command -v venvwrapper.sh)" ]; then
# export WORKON_HOME=$HOME/.virtualenvs
# source $(command -v venvwrapper.sh)
# fi
''; '';
}; };
} }