A mineral is a naturally occurring solid, with a definable chemical composition, a crystalline structure, is formed by geologic processes, and is inorganic. Ice satisfies this definition and is thus a mineral! Glaciers, and the layers within them, serve as analogies to metamorphic rock rheology (deformation and flow studies).
I’ve been told that there are pebbles of ice in the sands of Mars. Crazy!