mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 17:24:35 +00:00
Add python dependencies
This commit is contained in:
parent
7c3098c74f
commit
8a4d6ba1cb
|
@ -5,6 +5,7 @@
|
|||
./poetry.nix
|
||||
./rye.nix
|
||||
./pyright.nix
|
||||
./mypy.nix
|
||||
./ruff.nix
|
||||
];
|
||||
}
|
||||
|
|
14
home/programs/terminal/coding/python/mypy.nix
Normal file
14
home/programs/terminal/coding/python/mypy.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
cfg = osConfig.myOptions.home-manager.programs.coding.python;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [ python312Packages.mypy ];
|
||||
};
|
||||
}
|
|
@ -14,6 +14,11 @@ in {
|
|||
settings = {
|
||||
virtualenvs = {
|
||||
in-project = true;
|
||||
|
||||
# use python the version of python that's globally installed on the system
|
||||
# and exists in PATH, instead of the python version poetry was installed
|
||||
# with. Annoyingly, there's no good way to override the python version at
|
||||
# which NixOS will built poetry here, so this is the next best thing.
|
||||
prefer-active-python = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -9,14 +9,6 @@
|
|||
cfg = osConfig.myOptions.home-manager.programs.coding.python;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
python38
|
||||
python39
|
||||
python310
|
||||
python311
|
||||
python312
|
||||
python313
|
||||
];
|
||||
home.packages = with pkgs; [ python312 ];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -5,5 +5,6 @@ _: {
|
|||
./editors
|
||||
./file-managers
|
||||
./emulators
|
||||
./coding
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue