27 lines
529 B
Nix
27 lines
529 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
python = import ./common.nix { inherit pkgs; };
|
|
in
|
|
{
|
|
options = {
|
|
devShells.python = lib.mkOption {
|
|
type = lib.types.package;
|
|
default = python.devShell;
|
|
};
|
|
my.dev.python = {
|
|
enable = lib.mkEnableOption "Install Python tools globally";
|
|
users = lib.mkOption {
|
|
type = inputs.self.lib.usersOptionType lib;
|
|
default = config.my.toggleUsers.dev;
|
|
description = "Users to install Python packages for";
|
|
};
|
|
};
|
|
};
|
|
}
|