misc: fix python environment options

This commit is contained in:
Gaetan Lepage 2024-01-06 19:17:32 +01:00 committed by Gaétan Lepage
parent a1f8b437b3
commit d52f656a8b
3 changed files with 18 additions and 31 deletions

View file

@ -39,22 +39,14 @@ in {
description = "Extra packages to be made available to neovim";
};
python = {
package = mkOption {
type = types.package;
default = pkgs.python3;
description = "";
};
extraPythonPackages = mkOption {
type = with types; functionTo (listOf package);
default = p: [];
defaultText = literalExpression "p: with p; [ ]";
description = "Python packages to add to the `PYTHONPATH` of neovim.";
example = lib.literalExpression ''
p: [ p.numpy ]
'';
};
extraPythonPackages = mkOption {
type = with types; functionTo (listOf package);
default = p: [];
defaultText = literalExpression "p: with p; [ ]";
description = "Python packages to add to the `PYTHONPATH` of neovim.";
example = lib.literalExpression ''
p: [ p.numpy ]
'';
};
extraConfigLua = mkOption {