mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 10:09:42 +00:00
23 lines
346 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|