From ad778037d825dbded1811c0a0407cfcaa6b95030 Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Mon, 28 Mar 2022 09:52:18 +0200 Subject: [PATCH] Add python --- programs/default.nix | 1 + programs/python.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 programs/python.nix diff --git a/programs/default.nix b/programs/default.nix index 8d10003..496f688 100644 --- a/programs/default.nix +++ b/programs/default.nix @@ -4,5 +4,6 @@ ./aspell.nix ./emacs ./obs-studio.nix + ./python.nix ]; } diff --git a/programs/python.nix b/programs/python.nix new file mode 100644 index 0000000..67e7dc4 --- /dev/null +++ b/programs/python.nix @@ -0,0 +1,13 @@ +{ config, lib, pkgs, ... }: +with pkgs; +let + my-python-packages = python-packages: with python-packages; [ + pandas + requests + # other python packages you want + ]; + python-with-my-packages = python3.withPackages my-python-packages; +in +{ + environment.systemPackages = [ python-with-my-packages ]; +}