mirror of
https://github.com/ItsDrike/nixdots
synced 2024-09-20 09:29:41 +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;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|