backups and fish functions

This commit is contained in:
Noah Masur
2025-01-31 15:40:41 -05:00
parent b123ae3e69
commit e1f987e83b
13 changed files with 225 additions and 167 deletions

View File

@ -0,0 +1,5 @@
if count $argv >/dev/null
curl ipinfo.io/$argv
else
curl checkip.amazonaws.com
end

View File

@ -0,0 +1,10 @@
{ pkgs, lib, ... }:
pkgs.writers.writeFishBin "ip-check" {
makeWrapperArgs = [
"--prefix"
"PATH"
":"
"${lib.makeBinPath [ pkgs.curl ]}"
];
} builtins.readFile ./ip.fish