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

31 lines
602 B
Nix

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