From ea20acbd987d5ec6e3806348c4dc62d8af11b2d6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 15 Jan 2023 09:57:02 -0800 Subject: ref(home/python): use the default version Use the default version of python for the nixos version I'm using. Remove an unused environment variable (PYTHON_HISTFILE) since it's not used (I don't remember where I got this one from, but it's not used to set the history for the python interpreter, see [1]). Add an environment variable for ipython. [1] https://github.com/python/cpython/blob/main/Lib/site.py#L468 --- home/python/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/python/default.nix b/home/python/default.nix index fa5e0d8..32a2129 100644 --- a/home/python/default.nix +++ b/home/python/default.nix @@ -17,13 +17,13 @@ in }; config = lib.mkIf cfg.enable { - home.packages = with pkgs.python310Packages; [ pythonEnv ]; + home.packages = with pkgs.python3Packages; [ pythonEnv ]; home.sessionVariables = with config.xdg; { + IPYTHONDIR = "${cacheHome}/ipython"; PIP_LOG = "${cacheHome}/pip/pip.log"; PYLINTHOME = "${cacheHome}/pylint"; PYTHON_EGG_CACHE = "${cacheHome}/python-eggs"; - PYTHON_HISTFILE = "${cacheHome}/python_history"; }; }; } -- cgit 1.4.1