🚀 add basic python environment

nixos
Moritz Böhme 2022-02-20 22:56:53 +01:00
parent 5899f9d948
commit 3ff3229849
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
3 changed files with 6 additions and 1 deletions

View File

@ -61,7 +61,8 @@ in {
xorg.xprop xorg.xprop
# :lang python # :lang python
python-language-server nodePackages.pyright
python-dev
# :email # :email
mu mu

View File

@ -1,6 +1,7 @@
{ inputs }: { inputs }:
final: prev: { final: prev: {
python-dev = import ./python.nix final prev;
stable = import inputs.stable { stable = import inputs.stable {
inherit (prev) system; inherit (prev) system;
config.allowUnfree = true; config.allowUnfree = true;

3
overlays/python.nix Normal file
View File

@ -0,0 +1,3 @@
final: prev:
prev.python310.withPackages
(packages: with packages; [ black pyflakes isort nose pytest ])