From 6da09787798e13ba3601fade0851d97ddca3898d Mon Sep 17 00:00:00 2001 From: materus Date: Sun, 31 Mar 2024 00:35:26 +0100 Subject: [PATCH] home-profile: zsh add speedtest, use lib.getExe --- configurations/profile/home/shell/zsh.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configurations/profile/home/shell/zsh.nix b/configurations/profile/home/shell/zsh.nix index 6d19a84..916375c 100644 --- a/configurations/profile/home/shell/zsh.nix +++ b/configurations/profile/home/shell/zsh.nix @@ -138,7 +138,11 @@ in } myip() { - wget -qO- https://wtfismyip.com/text + ${lib.getExe pkgs.wget} -qO- https://wtfismyip.com/text + } + + speedtest() { + ${lib.getExe pkgs.curl} -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | ${lib.getExe pkgs.python3} }