|
|
@ -1009,15 +1009,10 @@ function get_netbsd() { |
|
|
|
function get_nixos() { |
|
|
|
function get_nixos() { |
|
|
|
local EDITION="${1:-}" |
|
|
|
local EDITION="${1:-}" |
|
|
|
local HASH="" |
|
|
|
local HASH="" |
|
|
|
local ISO="" |
|
|
|
local ISO="latest-nixos-${EDITION}-x86_64-linux.iso" |
|
|
|
local URL="" |
|
|
|
local URL="https://channels.nixos.org/nixos-${RELEASE}" |
|
|
|
|
|
|
|
|
|
|
|
URL="https://channels.nixos.org/nixos-${RELEASE}" |
|
|
|
|
|
|
|
ISO="latest-nixos-${EDITION}-x86_64-linux.iso" |
|
|
|
|
|
|
|
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1) |
|
|
|
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1) |
|
|
|
web_get "${URL}/${ISO}" "${VM_PATH}" |
|
|
|
echo "${URL}/${ISO} ${HASH}" |
|
|
|
check_hash "${ISO}" "${HASH}" |
|
|
|
|
|
|
|
make_vm_config "${ISO}" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function get_openbsd() { |
|
|
|
function get_openbsd() { |
|
|
|