diff options
author | Franck Cuny <franck@fcuny.net> | 2023-01-15 09:57:02 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-01-15 09:57:02 -0800 |
commit | ea20acbd987d5ec6e3806348c4dc62d8af11b2d6 (patch) | |
tree | d3dbbd24fb2f55df8d6a93d5b19391c952f5fb1a /home | |
parent | ref(home/gpg): set homedir for GPG configurations (diff) | |
download | world-ea20acbd987d5ec6e3806348c4dc62d8af11b2d6.tar.gz |
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
Diffstat (limited to 'home')
-rw-r--r-- | home/python/default.nix | 4 |
1 files 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"; }; }; } |