05a12cd80d
For python, rust, love2D/lua, and node
32 lines
878 B
Nix
32 lines
878 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
my = {
|
|
packages = with pkgs; [
|
|
python37
|
|
python37Packages.pip
|
|
python37Packages.ipython
|
|
python37Packages.black
|
|
python37Packages.setuptools
|
|
python37Packages.pylint
|
|
python37Packages.poetry
|
|
];
|
|
|
|
env.IPYTHONDIR = "$XDG_CONFIG_HOME/ipython";
|
|
env.PIP_CONFIG_FILE = "$XDG_CONFIG_HOME/pip/pip.conf";
|
|
env.PIP_LOG_FILE = "$XDG_DATA_HOME/pip/log";
|
|
env.PYLINTHOME = "$XDG_DATA_HOME/pylint";
|
|
env.PYLINTRC = "$XDG_CONFIG_HOME/pylint/pylintrc";
|
|
env.PYTHONSTARTUP = "$XDG_CONFIG_HOME/python/pythonrc";
|
|
|
|
zsh.rc = lib.readFile <my/config/python/aliases.zsh>;
|
|
|
|
alias.py = "python";
|
|
alias.py2 = "python2";
|
|
alias.py3 = "python3";
|
|
alias.po = "poetry";
|
|
alias.ipy = "ipython --no-banner";
|
|
alias.ipylab = "ipython --pylab=qt5 --no-banner";
|
|
};
|
|
}
|