mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-11 18:18:37 +02:00
17 lines
326 B
Nix
17 lines
326 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
|
|
'';
|
|
};
|
|
};
|
|
}
|