{ pkgs, config, lib, ... }: let inherit (import ../../options.nix) python; my-python-packages = ps: with ps; [ pandas requests ]; in lib.mkIf (python == true) { environment.systemPackages = with pkgs; [ jetbrains.pycharm-community-bin (pkgs.python3.withPackages my-python-packages) ]; }