Skip to content

Commit 3f43a97

Browse files
committed
fix(nixos): support only latest 25.05
Previously, edition fallback logic allowed downloading the correct "graphical" ISO for 25.05 even when specifying "plasma6" or "gnome". However, the VM_PATH and directory name still used the original edition (e.g., nixos-25.05-plasma6). Fixing this would require more complicated changes to the code. NixOS 24.11 will reach EOL on 2025-06-30, about two weeks from now.
1 parent da453eb commit 3f43a97

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

quickget

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -876,14 +876,13 @@ function releases_nitrux() {
876876
}
877877

878878
function releases_nixos() {
879-
# Lists unstable plus the two most recent releases
879+
# Lists unstable plus the most recent release
880880
#shellcheck disable=SC2046
881-
echo unstable $(web_pipe "https://nix-channels.s3.amazonaws.com/?delimiter=/" | grep -o -E 'nixos-[[:digit:]]+\.[[:digit:]]+' | cut -d- -f2 | sort -nru | head -n +2)
881+
echo unstable $(web_pipe "https://nix-channels.s3.amazonaws.com/?delimiter=/" | grep -o -E 'nixos-[[:digit:]]+\.[[:digit:]]+' | cut -d- -f2 | sort -nru | head -n +1)
882882
}
883883

884884
function editions_nixos() {
885-
# TODO: Remove "plasma" and "gnome" editions and use only "graphical" after 24.11 support ends (expected in NixOS 25.11)
886-
echo minimal plasma6 gnome
885+
echo minimal graphical
887886
}
888887

889888
function releases_nwg-shell() {
@@ -2242,15 +2241,6 @@ function get_nitrux() {
22422241

22432242
function get_nixos() {
22442243
local HASH=""
2245-
# NixOS "gnome" and "plasma" ISOs are unified as "graphical" since 25.05
2246-
# https://github.com/NixOS/nixpkgs/pull/355893
2247-
case "${EDITION}" in
2248-
plasma6|gnome)
2249-
if [[ "${RELEASE}" == "25.05" || "${RELEASE}" == "unstable" ]]; then
2250-
EDITION="graphical"
2251-
fi
2252-
;;
2253-
esac
22542244
local ISO="latest-nixos-${EDITION}-x86_64-linux.iso"
22552245
local URL="https://channels.nixos.org/nixos-${RELEASE}"
22562246
HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)

0 commit comments

Comments
 (0)