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

37 lines
674 B
Nix
Raw Normal View History

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