vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
#!/usr/bin/env bash
# "26.11 · 15 Oct" (release and nixpkgs date) from nixos-version (26.11.20261015.fe13242),
# for the update tile. With a host, asks it over SSH; "Unreachable" if that fails.
# nixos-version.sh [host]
if [ -n "$1" ]; then
v=$(ssh -o BatchMode=yes -o ConnectTimeout=5 "$1" nixos-version 2>/dev/null)
else
v=$(nixos-version)
fi
v=${v%% *}
[ -n "$v" ] || { echo "Unreachable"; exit 0; }
IFS=. read -r major minor date _ <<<"$v"
date -d "$date" "+$major.$minor · %-d %b"