{ config, pkgs, lib, ... }: let cfg = config.my.home.python; pythonEnv = pkgs.python310.withPackages (p: with p; [ requests black isort ]); in { options.my.home.python = with lib; { enable = mkEnableOption "python configuration"; }; config.home.packages = with pkgs.python310Packages; lib.mkIf cfg.enable ([ pythonEnv ]); }