nixdots/home/programs/terminal/coding/python/poetry.nix
2024-06-26 23:48:04 +02:00

23 lines
346 B
Nix

{
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;
};
};
};
};
}