diff --git a/flake.lock b/flake.lock index c586b0e..9beec12 100644 --- a/flake.lock +++ b/flake.lock @@ -398,11 +398,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1706098335, - "narHash": "sha256-r3dWjT8P9/Ah5m5ul4WqIWD8muj5F+/gbCdjiNVBKmU=", + "lastModified": 1706718339, + "narHash": "sha256-S+S97c/HzkO2A/YsU7ZmNF9w2s7Xk6P8dzmfDdckzLs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a77ab169a83a4175169d78684ddd2e54486ac651", + "rev": "53fbe41cf76b6a685004194e38e889bc8857e8c2", "type": "github" }, "original": { diff --git a/hm/common.nix b/hm/common.nix index e455af5..91f70c6 100644 --- a/hm/common.nix +++ b/hm/common.nix @@ -182,6 +182,7 @@ jdupes duperemove compsize + btdu # toolbox imagemagick diff --git a/hm/scripts/lip b/hm/scripts/lip index 3663bd2..e3f090a 100755 --- a/hm/scripts/lip +++ b/hm/scripts/lip @@ -1,8 +1,8 @@ #!/usr/bin/env nix-shell #! nix-shell -i bash --pure -#! nix-shell -p bash jq curl findutils coreutils +#! nix-shell -p bash jq curl cacert findutils coreutils -set -euo pipefail +set -euxo pipefail url="https://ip.frogeye.fr/json" cachedir="$HOME/.cache/lip" @@ -16,7 +16,6 @@ then jq_sel="$@" fi - if [ -n "$ip" ] then cachefile="$cachedir/$ip"