diff --git a/changelog.d/20250303_183108_os-python-previous-version_scriv.md b/changelog.d/20250303_183108_os-python-previous-version_scriv.md new file mode 100644 index 000000000..c6bfaffd6 --- /dev/null +++ b/changelog.d/20250303_183108_os-python-previous-version_scriv.md @@ -0,0 +1,17 @@ + + + +### NixOS XX.XX platform + +- install python-3.11 by default in addition to the default python-3.12 diff --git a/nixos/platform/packages.nix b/nixos/platform/packages.nix index 879e6a837..fc63f5f69 100644 --- a/nixos/platform/packages.nix +++ b/nixos/platform/packages.nix @@ -3,7 +3,12 @@ { config = { - environment.systemPackages = with pkgs; [ + environment.systemPackages = with pkgs; + let + previousPythonVersion = ver: + "${lib.versions.major ver}${toString (lib.toInt(lib.versions.minor ver) - 1)}"; + previousPython = pkgs."python${previousPythonVersion pkgs.python3.version}"; + in [ apacheHttpd atop automake @@ -52,6 +57,8 @@ psmisc pwgen (python3.withPackages (ps: with ps; [ setuptools ])) + # keep around at least one previous python version for upgrade compatibility + (previousPython.withPackages (ps: with ps; [setuptools])) python3Packages.virtualenv rclone ripgrep