mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 04:54:35 +00:00
Add python dependencies
This commit is contained in:
parent
7c3098c74f
commit
8a4d6ba1cb
|
@ -5,6 +5,7 @@
|
||||||
./poetry.nix
|
./poetry.nix
|
||||||
./rye.nix
|
./rye.nix
|
||||||
./pyright.nix
|
./pyright.nix
|
||||||
|
./mypy.nix
|
||||||
./ruff.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 = {
|
settings = {
|
||||||
virtualenvs = {
|
virtualenvs = {
|
||||||
in-project = true;
|
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;
|
prefer-active-python = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,14 +9,6 @@
|
||||||
cfg = osConfig.myOptions.home-manager.programs.coding.python;
|
cfg = osConfig.myOptions.home-manager.programs.coding.python;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [ python312 ];
|
||||||
python38
|
|
||||||
python39
|
|
||||||
python310
|
|
||||||
python311
|
|
||||||
python312
|
|
||||||
python313
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,5 +5,6 @@ _: {
|
||||||
./editors
|
./editors
|
||||||
./file-managers
|
./file-managers
|
||||||
./emulators
|
./emulators
|
||||||
|
./coding
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue