2024-05-07 23:31:41 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-04-28 19:43:56 +02:00
|
|
|
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-04-28 19:43:56 +02:00
|
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
2024-04-28 19:43:56 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|