about summary refs log tree commit diff
path: root/home/python/default.nix
blob: cd866becdac1c9a316b7c4c4eaf2af0cbe7d5941 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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 ]);
}