From 18384ce42ae1098ec676704436e4d31ce4d0b742 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Mon, 6 May 2024 12:58:30 -0700 Subject: [PATCH] aliases --- extras/dev.nix | 6 ++++-- extras/uwuraid.nix | 6 +++++- users/tao/nushell/stuff.nu | 11 +++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/extras/dev.nix b/extras/dev.nix index 1ab3bae..3ed21de 100644 --- a/extras/dev.nix +++ b/extras/dev.nix @@ -1,14 +1,14 @@ {pkgs, ...}: { environment.systemPackages = with pkgs; [ + # lychee # link checker # etcher # freecad # gh # vulkan-loader - fontforge + # fontforge direnv qFlipper hyperfine - # jq jujutsu just lldb @@ -21,6 +21,7 @@ taplo tio tokei + typos # arduino arduino-language-server @@ -70,6 +71,7 @@ rustup sccache trunk + wasm-bindgen-cli ]; hardware.flipperzero.enable = true; diff --git a/extras/uwuraid.nix b/extras/uwuraid.nix index 54d6081..47e8c1b 100644 --- a/extras/uwuraid.nix +++ b/extras/uwuraid.nix @@ -36,7 +36,11 @@ # what = "//100.97.47.81/isos"; # where = "/mnt/uwuraid/isos"; # }) - # (opts // { what = "//100.97.47.81/jellyfin"; where = "/mnt/uwuraid/jellyfin"; }) + # (opts + # // { + # what = "//100.97.47.81/jellyfin"; + # where = "/mnt/uwuraid/jellyfin"; + # }) (opts // { what = "//100.97.47.81/movies"; diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index ef666b4..2f5e79a 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -28,14 +28,25 @@ def tse [exit_node?] { } } +def tsr [] { + tailscale status --json | from json | get Peer | transpose nodekey node | get node | filter {$in.Location?.Country == USA} | get TailscaleIPs | each {get 0} | select (random int 0..($in | length)) | tse $in.0; + tailscale status +} + def rb [] { sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose hx --grammar fetch; hx --grammar build + rm -rf ~/.cache/jdtls/ } def rs [] { sudo nice -n19 nixos-rebuild switch --flake . --impure --verbose hx --grammar fetch; hx --grammar build + rm -rf ~/.cache/jdtls/ +} + +def ns [package] { + nix shell $"nixpkgs#($package)" }