2025-01-29 21:12:58 -05:00

28 lines
461 B
Nix

{
config,
pkgs,
lib,
...
}:
let
cfg = config.nmasur.presets.programs.python;
in
{
options.nmasur.presets.programs.python.enable = lib.mkEnableOption "Python programming language.";
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.pyright # Python language server
pkgs.black # Python formatter
pkgs.python310Packages.flake8 # Python linter
];
programs.fish.shellAbbrs = {
py = "python3";
};
};
}