nixos-config/profiles/workspace/i3blocks/scripts/weather.nix

6 lines
151 B
Nix

{ bash, config, curl, iconfont, ... }: ''
#!${bash}/bin/bash
WTTR=$(curl wttr.in/?format=1)
echo "<span font=\"Roboto Mono 11\">$WTTR</span>"
''