This repository has been archived on 2025-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config/nixosModules/dev/python.nix
2025-09-21 16:47:53 +02:00

38 lines
598 B
Nix

{
config,
pkgs,
lib,
...
}:
let
cfg = config.krop.python;
in
{
options.krop.python = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
};
install-additional = lib.mkOption {
type = lib.types.bool;
default = true;
example = true;
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages =
with pkgs;
[
python3
poetry
pre-commit
uv-bin
]
++ lib.optionals cfg.install-additional [
python313
python311
];
};
}