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

17 lines
307 B
Nix

{ ... }:
{
perSystem = { pkgs, ... }: {
packages.custom-weather = 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
'';
};
};}