mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-24 03:55:37 +00:00
28 lines
504 B
Nix
28 lines
504 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
options.python.enable = lib.mkEnableOption "Python programming language.";
|
|
|
|
config = lib.mkIf config.python.enable {
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
home.packages = with pkgs; [
|
|
# python310 # Standard Python interpreter
|
|
pyright # Python language server
|
|
black # Python formatter
|
|
python310Packages.flake8 # Python linter
|
|
];
|
|
|
|
programs.fish.shellAbbrs = {
|
|
py = "python3";
|
|
};
|
|
};
|
|
};
|
|
}
|