qg: Add Nitrux

This commit is contained in:
zenobit 2023-12-15 19:21:48 +01:00 committed by zenobit
parent c734916939
commit bfee2e5921
2 changed files with 80 additions and 0 deletions

View file

@ -98,6 +98,7 @@ function pretty_name() {
mxlinux) PRETTY_NAME="MX Linux";;
netboot) PRETTY_NAME="netboot.xyz";;
netbsd) PRETTY_NAME="NetBSD";;
nitrux) PRETTY_NAME="Nitrux";;
nixos) PRETTY_NAME="NixOS";;
macos) PRETTY_NAME="macOS";;
openbsd) PRETTY_NAME="OpenBSD";;
@ -279,6 +280,7 @@ function os_support() {
mxlinux \
netboot \
netbsd \
nitrux \
nixos \
lubuntu \
macos \
@ -382,6 +384,7 @@ function os_homepages(){
miyo) HOMEPAGE="https://miyolinux.sourceforge.io/";;
netboot) HOMEPAGE="https://netboot.xyz/";;
netbsd) HOMEPAGE="https://www.netbsd.org/";;
nitrux) HOMEPAGE="https://nxos.org/";;
nixos) HOMEPAGE="https://nixos.org/";;
lubuntu) HOMEPAGE="https://lubuntu.me/";;
macos) HOMEPAGE="https://www.apple.com/macos/";;
@ -852,6 +855,10 @@ function releases_netbsd() {
echo ${NBSD_RELEASES}
}
function releases_nitrux() {
echo latest
}
function releases_nixos(){
echo 21.05 21.11 22.05 22.11 23.05 23.11
}
@ -2349,6 +2356,21 @@ function get_netbsd() {
echo "${URL}/${ISO} ${HASH}"
}
function get_nitrux() {
local HASH=""
local URLBASE=""
local URL=""
local ISONAME=""
local ISO=""
URLBASE="https://sourceforge.net/projects/nitruxos/files/Release"
URL="${URLBASE}/ISO"
ISONAME="nitrux-nx-desktop-plasma-fefc905b-amd64"
ISO="${ISONAME}.iso"
HASH=$(wget -q -O- "${URLBASE}/MD5/${ISONAME}.md5sum" | grep "${ISO}" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}
function get_nixos() {
local EDITION="${1:-}"
local HASH=""