From 3ff3229849f1dd00928ac3ddeb626170581ed1f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sun, 20 Feb 2022 22:56:53 +0100 Subject: [PATCH] :rocket: add basic python environment --- modules/editors/emacs.nix | 3 ++- overlays/default.nix | 1 + overlays/python.nix | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 overlays/python.nix diff --git a/modules/editors/emacs.nix b/modules/editors/emacs.nix index a6faad5..0c8e27b 100644 --- a/modules/editors/emacs.nix +++ b/modules/editors/emacs.nix @@ -61,7 +61,8 @@ in { xorg.xprop # :lang python - python-language-server + nodePackages.pyright + python-dev # :email mu diff --git a/overlays/default.nix b/overlays/default.nix index d16b496..77b8c0d 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,6 +1,7 @@ { inputs }: final: prev: { + python-dev = import ./python.nix final prev; stable = import inputs.stable { inherit (prev) system; config.allowUnfree = true; diff --git a/overlays/python.nix b/overlays/python.nix new file mode 100644 index 0000000..38cd8c6 --- /dev/null +++ b/overlays/python.nix @@ -0,0 +1,3 @@ +final: prev: +prev.python310.withPackages +(packages: with packages; [ black pyflakes isort nose pytest ])