nixdots/home/programs/terminal/coding/python/poetry.nix

23 lines
346 B
Nix
Raw Normal View History

2024-06-26 21:46:50 +00:00
{
lib,
osConfig,
...
}: let
inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.coding.python;
in {
config = mkIf cfg.enable {
programs.poetry = {
enable = true;
settings = {
virtualenvs = {
in-project = true;
prefer-active-python = true;
};
};
};
};
}