Files
nixos/modules/packages/custom-weather.nix
T

17 lines
297 B
Nix

{ ... }:
{
flake.packages.custom-weather = { pkgs, ... }:
pkgs.writeShellApplication {
name = "custom-weather";
runtimeInputs = with pkgs; [
curl
];
text = ''
while true; do
curl "https://wttr.in/?0&d&q&F&lang=fr"
sleep 7200
done
'';
};
}