23 lines
498 B
Nix
Raw Normal View History

2022-12-21 14:18:03 -07:00
{ config, pkgs, lib, ... }: {
2022-06-21 17:51:27 -04:00
2022-12-21 14:18:03 -07:00
options.python.enable = lib.mkEnableOption "Python programming language.";
2022-07-01 08:45:07 -04:00
2022-12-21 14:18:03 -07:00
config = lib.mkIf config.python.enable {
2022-07-01 08:45:07 -04:00
2022-12-21 14:18:03 -07:00
home-manager.users.${config.user} = {
home.packages = with pkgs; [
# python310 # Standard Python interpreter
nodePackages.pyright # Python language server
black # Python formatter
python310Packages.flake8 # Python linter
];
programs.fish.shellAbbrs = { py = "python3"; };
};
2022-07-01 08:45:07 -04:00
};
2022-06-21 17:51:27 -04:00
}