From c32f17dfc3b5f125828b0d880526f697f67cbb9c Mon Sep 17 00:00:00 2001 From: Amir Saeid Date: Sun, 10 May 2026 21:43:20 +0100 Subject: Add a python module --- modules/python.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/python.nix (limited to 'modules/python.nix') diff --git a/modules/python.nix b/modules/python.nix new file mode 100644 index 0000000..56eadb3 --- /dev/null +++ b/modules/python.nix @@ -0,0 +1,25 @@ +{ + config, + pkgs, + lib, + userOptions, + ... +}: +let + pythonVersion = lib.replaceStrings [ "." ] [ "" ] userOptions.pythonVersion; + python = pkgs."python${pythonVersion}"; + pythonPackages = pkgs."python${pythonVersion}Packages"; +in +{ + home.packages = with pkgs; [ + python + pipenv + pythonPackages.virtualenv + pythonPackages.uv + ]; + + programs.pyenv = { + enable = true; + enableZshIntegration = true; + }; +} -- cgit v1.2.3