From 1fa23239eead3358abdc95732e04b12e37aa0e49 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:16:23 -0800 Subject: [PATCH] new nushell stuff --- extras/dev.nix | 1 + systems/BASED.nix | 2 +- users/tao/nushell/stuff.nu | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/extras/dev.nix b/extras/dev.nix index 3fb891b..7c3a5f4 100644 --- a/extras/dev.nix +++ b/extras/dev.nix @@ -1,5 +1,6 @@ {pkgs, ...}: { environment.systemPackages = with pkgs; [ + digital asm-lsp gh # bash-language-server diff --git a/systems/BASED.nix b/systems/BASED.nix index 53cb9d4..8b03b03 100644 --- a/systems/BASED.nix +++ b/systems/BASED.nix @@ -26,7 +26,7 @@ ouch pueue ripgrep - rustdesk + # rustdesk # screen skim tree diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index 084039b..0453684 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -27,6 +27,7 @@ alias jg = jj git clone --colocate alias jm = jj bookmark set main alias jp = jj git push alias js = jj status +alias jw = jj workspace update-stale def h [] { sk | complete | @@ -66,6 +67,9 @@ def nr [package] { nix search nixpkgs $package } def rebuild --wrapped [subcommand, ...rest] { + if (open /etc/hostname == NOlaptop) { + sudo nix store info --store ssh://nocomputer + } sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest } # def post-rebuild [] {