mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-11 02:56:27 +00:00
23 lines
380 B
Nix
23 lines
380 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.presets.languages.python;
|
|
in
|
|
{
|
|
options.presets.languages.python = {
|
|
enable = lib.mkEnableOption "Python";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
plugins = {
|
|
conform-nvim.settings.formatters_by_ft.python = [ "black" ];
|
|
lsp.servers.pyright.enable = true;
|
|
};
|
|
extraPackages = [ pkgs.black ];
|
|
};
|
|
}
|