From f417a41d2752f6c6f41175fba0c6e5581c9c5a06 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 18 Sep 2022 10:06:09 -0700 Subject: feat(home/python): add a few more packages Having requests installed by default is useful to write quickly a script, and the black formatter is to enforce consistency. --- home/python/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'home') diff --git a/home/python/default.nix b/home/python/default.nix index 9e72569..cd866be 100644 --- a/home/python/default.nix +++ b/home/python/default.nix @@ -1,10 +1,16 @@ { config, pkgs, lib, ... }: -let cfg = config.my.home.python; +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; lib.mkIf cfg.enable ([ python310 ]); + config.home.packages = with pkgs.python310Packages; lib.mkIf cfg.enable ([ pythonEnv ]); } -- cgit 1.4.1