- Add comprehensive project documentation to AGENTS.md - Remove stale docs from docs/ directory - Update agent configs (agents.nix, pi.nix) - Update python.nix language config - Update .gitignore
34 lines
696 B
Nix
34 lines
696 B
Nix
# Python runtime with pip and uv.
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.coding.languages.python;
|
|
in {
|
|
options.coding.languages.python = {
|
|
enable = mkEnableOption "Python runtime with pip and uv";
|
|
extraPackages = mkOption {
|
|
type = types.listOf types.package;
|
|
default = [];
|
|
example = literalExpression "[ pkgs.python3Packages.numpy ]";
|
|
description = "Additional Python packages to include";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
(pkgs.python3.withPackages (ps:
|
|
with ps;
|
|
[
|
|
pip
|
|
uv
|
|
]
|
|
++ cfg.extraPackages))
|
|
pyrefly
|
|
];
|
|
};
|
|
}
|