diff --git a/modules/darwin/README.md b/modules/darwin/README.md index eff8fb8..2b78804 100644 --- a/modules/darwin/README.md +++ b/modules/darwin/README.md @@ -11,6 +11,13 @@ ├── packages.nix # List of packages to install for MacOS ``` +## Python + +`python3.13` is available alongside the default Python environment, without +changing `python` or `python3` or their configured packages. When the default +Python already is 3.13, its existing command is used instead of an extra launcher. +Use `python3.13 -m venv .venv` to create a Python 3.13 virtual environment. + ## Dock activation Dock setup runs only when `olaf` is the active console user. Each `dockutil` diff --git a/modules/darwin/packages.nix b/modules/darwin/packages.nix index 9259724..089527f 100644 --- a/modules/darwin/packages.nix +++ b/modules/darwin/packages.nix @@ -211,3 +211,8 @@ with pkgs; dockutil ] +++ lib.optionals (lib.versions.majorMinor python3.version != "3.13") [ + (writeShellScriptBin "python3.13" '' + exec ${python313}/bin/python3.13 "$@" + '') +]