Init
This commit is contained in:
26
home/python.nix
Normal file
26
home/python.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
# Python 3.13 (newest stable)
|
||||
python313
|
||||
python313Packages.pip
|
||||
python313Packages.virtualenv
|
||||
|
||||
# Additional useful tools
|
||||
python313Packages.pipx # Install Python apps in isolated environments
|
||||
uv # Fast Python package installer (alternative to pip)
|
||||
];
|
||||
|
||||
# Set up default Python version
|
||||
home.sessionVariables = { PYTHON = "${pkgs.python313}/bin/python3"; };
|
||||
|
||||
# Shell aliases for convenience
|
||||
programs.zsh.shellAliases = {
|
||||
venv = "python3 -m venv";
|
||||
activate = "source venv/bin/activate";
|
||||
};
|
||||
|
||||
programs.fish.shellAliases = {
|
||||
venv = "python3 -m venv";
|
||||
activate = "source venv/bin/activate.fish";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user