From 7e0e3e830619ce8cd0c9683231fe15865540cc13 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 24 Jun 2024 11:32:23 +0100 Subject: [PATCH] fix(nixos): adapt the plasma edition based on NixOS release --- quickget | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index 55c17f3..ac01966 100755 --- a/quickget +++ b/quickget @@ -912,7 +912,7 @@ function releases_nixos() { } function editions_nixos() { - echo minimal plasma5 plasma6 gnome + echo minimal plasma gnome } function releases_nwg-shell() { @@ -2223,6 +2223,16 @@ function get_nitrux() { function get_nixos() { local HASH="" + # Adapt the plasma edition according to the NixOS release + case "${EDITION}" in + plasma) + if [ "${RELEASE}" == "23.11" ]; then + EDITION+="5" + else + EDITION+="6" + fi + ;; + esac local ISO="latest-nixos-${EDITION}-x86_64-linux.iso" local URL="https://channels.nixos.org/nixos-${RELEASE}" HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)