nixos/modules/dev/python.nix
2024-08-01 16:24:09 +04:00

24 lines
353 B
Nix

{
outputs,
options,
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.dev.python;
in {
options.modules.dev.python = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
python3
black
python310Packages.pip
nodePackages.pyright
];
};
}