grimm-nixos-laptop/common/tooling/python.nix

28 lines
525 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
let
cfg = config.grimmShared;
in
{
config = with cfg; lib.mkIf (enable && tooling.enable) {
environment.systemPackages = with pkgs; [
python3
pypy3
] ++ lib.optionals cfg.graphical [
jetbrains.pycharm-community
];
programs.xonsh = {
enable = true;
package = pkgs.xonsh.override {
extraPackages = ps: with ps; [
requests
matplotlib
numpy
scipy
pygobject3
];
};
};
};
}