mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 13:22:04 +00:00
28 lines
461 B
Nix
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";
|
||
|
};
|
||
|
};
|
||
|
}
|