{ flake.modules.homeManager.gui = { pkgs, ... }: { home.packages = [ (pkgs.writeShellApplication { name = "status-weather"; runtimeInputs = with pkgs; [ curl ]; text = '' out="$(curl -s https://wttr.in/Caerleon?format=%t)" [[ "$out" == *"Unknown location"* ]] && exit 1 echo "$out" ''; }) ]; }; }