blob: a67979889365f80a0d1a3064725b84142bcdad53 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ config, pkgs, lib, ... }:
let
cfg = config.my.home.python;
pythonEnv = pkgs.python310.withPackages (p: with p; [
black # format
isort # format
pylsp-mypy # language server protocol
requests # HTTP library # HTTP lib
]);
in
{
options.my.home.python = with lib; {
enable = mkEnableOption "python configuration";
};
config.home.packages = with pkgs.python310Packages; lib.mkIf cfg.enable ([ pythonEnv ]);
}
|