From 669bdf16b7427b3952345d2b0d3871e646ff1467 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Thu, 5 Feb 2026 03:28:34 -0800 Subject: [PATCH] sutf --- users/tao.nix | 2 ++ users/tao/cargo.toml | 3 ++- users/tao/helix.nix | 1 + users/tao/nushell/extras/nix.nu | 8 +++++++- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/users/tao.nix b/users/tao.nix index e088478..be535cc 100644 --- a/users/tao.nix +++ b/users/tao.nix @@ -23,6 +23,8 @@ # texlab # thunderbird # wkhtmltopdf + bitwarden-desktop + bitwarden-cli appimage-run aspell aspellDicts.en diff --git a/users/tao/cargo.toml b/users/tao/cargo.toml index 66de025..7b70795 100644 --- a/users/tao/cargo.toml +++ b/users/tao/cargo.toml @@ -5,7 +5,8 @@ d = "doc --no-deps --open" [build] target = "x86_64-unknown-linux-gnu" -build-dir = "/home/tao/.cache/cargo/target" +# build-dir = "/home/tao/.cache/cargo/target" +build-dir = "{cargo-cache-home}/build/{workspace-path-hash}" rustflags = ["-Z", "threads=8"] rustc-wrapper = "/path/to/sccache" diff --git a/users/tao/helix.nix b/users/tao/helix.nix index 4df5daa..a234440 100644 --- a/users/tao/helix.nix +++ b/users/tao/helix.nix @@ -69,6 +69,7 @@ j = "jump_view_up"; k = "jump_view_down"; }; + i = "@:toggle las.display-inlay-hints"; t = { r = "@mip:reflow"; s = "@:sort"; diff --git a/users/tao/nushell/extras/nix.nu b/users/tao/nushell/extras/nix.nu index c782ef2..3513b14 100644 --- a/users/tao/nushell/extras/nix.nu +++ b/users/tao/nushell/extras/nix.nu @@ -64,7 +64,13 @@ def bump [...rest] { } let r = jj log -r @ --no-pager --no-graph --template 'change_id' sudo nix flake update - if (rebuild boot) { + def get_gen [] { + sudo nix-env --profile /nix/var/nix/profiles/system --list-generations | detect columns --guess -n | last | get column0 + } + let curr_gen = get_gen() + let build_status = rebuild boot + let new_gen = get_gen() + if ($build_status and ($curr_gen == $new_gen)) { jj desc -r $r -m $"bump (date now | format date "%Y-%m-%d")" jj bookmark set main -r $r jj git push