2023-05-13 16:15:13 -07:00
|
|
|
# python with all the venom
|
|
|
|
|
|
|
|
{ config, lib, pkgs, user, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.modules.devel.python;
|
2023-05-14 15:10:40 -07:00
|
|
|
my-python-packages = ps: with ps; [
|
|
|
|
virtualenv
|
|
|
|
i3ipc
|
2023-05-25 22:01:36 -07:00
|
|
|
ipython
|
|
|
|
pip
|
2023-05-14 15:10:40 -07:00
|
|
|
];
|
|
|
|
|
2023-05-13 16:15:13 -07:00
|
|
|
in {
|
|
|
|
options.modules.devel.python.enable = lib.mkEnableOption "python";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
|
|
|
|
# Install packages
|
2023-05-14 15:10:40 -07:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
(python3.withPackages my-python-packages)
|
|
|
|
beancount
|
|
|
|
fava
|
2023-05-20 09:16:45 -07:00
|
|
|
nodePackages_latest.pyright
|
|
|
|
distrobox
|
2023-05-14 15:10:40 -07:00
|
|
|
];
|
2023-05-13 16:15:13 -07:00
|
|
|
};
|
2023-05-14 15:10:40 -07:00
|
|
|
}
|