From 7eff3eb22deb4d15840505b282e69f851370fec3 Mon Sep 17 00:00:00 2001 From: Ivan Kirilov Dimitrov Date: Sun, 7 Jul 2024 19:20:35 +0200 Subject: [PATCH] add link to latest pic bingwp --- mailserver/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/mailserver/configuration.nix b/mailserver/configuration.nix index 47bf9f1..37b4311 100644 --- a/mailserver/configuration.nix +++ b/mailserver/configuration.nix @@ -77,6 +77,7 @@ description = "Download bing image of the day"; script = '' ${pkgs.nushell}/bin/nu -c "http get ('https://bing.com' + ((http get https://www.bing.com/HPImageArchive.aspx?format=js&n=1).images.0.url)) | save ('/var/pic' | path join ( [ (date now | format date '%Y-%m-%d'), '.png' ] | str join ))" + ${pkgs.nushell}/bin/nu -c "${pkgs.toybox}/bin/ln -sf (ls /var/pic | where type == file | get name | sort | last) /var/pic/latest.png" ''; }; };