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" ''; }; };