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

34 lines
715 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;
2024-05-08 00:05:17 +02:00
config = lib.concatLines (lib.mapAttrsToList (name: value: ''aliases["${name}"] = "${value}"'') config.environment.shellAliases);
2024-05-07 23:31:41 +02:00
package = pkgs.xonsh.override {
extraPackages =
ps: with ps; [
requests
matplotlib
numpy
scipy
pygobject3
];
};
};
};
}