From a4ef3a984f2e566284bb6a079c9ed2631ad3b2d5 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Fri, 16 Jan 2026 21:57:07 -0800 Subject: [PATCH] stufe --- extras/dev.nix | 3 ++- systems/BASED.nix | 1 + users/tao/cargo.toml | 1 + users/tao/helix.nix | 6 ++++++ users/tao/nushell/extras/alias.nu | 1 + users/tao/nushell/extras/nix.nu | 24 ++++++++++++------------ 6 files changed, 23 insertions(+), 13 deletions(-) diff --git a/extras/dev.nix b/extras/dev.nix index 095cbfb..85676a2 100644 --- a/extras/dev.nix +++ b/extras/dev.nix @@ -98,7 +98,6 @@ # leptosfmt # keep-sorted start bacon - dioxus-cli cargo-autoinherit cargo-binstall cargo-edit @@ -107,6 +106,7 @@ cargo-generate cargo-update cargo-watch + dioxus-cli elf2uf2-rs flip-link mdbook @@ -115,6 +115,7 @@ rustup rusty-man sccache + spacetimedb trunk wasm-bindgen-cli # keep-sorted end diff --git a/systems/BASED.nix b/systems/BASED.nix index 26e86f8..6ec2e46 100644 --- a/systems/BASED.nix +++ b/systems/BASED.nix @@ -54,6 +54,7 @@ systemd.services.display-manager.restartIfChanged = false; services.desktopManager.cosmic.enable = lib.mkDefault true; services.displayManager.cosmic-greeter.enable = lib.mkDefault true; + services.system76-scheduler.enable = lib.mkDefault true; environment.cosmic.excludePackages = with pkgs; [ cosmic-edit cosmic-player diff --git a/users/tao/cargo.toml b/users/tao/cargo.toml index e698743..66de025 100644 --- a/users/tao/cargo.toml +++ b/users/tao/cargo.toml @@ -22,6 +22,7 @@ codegen-backend = "cranelift" [profile.dev.package."*"] # slow clean build for faster incrementals opt-level = 3 +codegen-backend = "llvm" [profile.release] incremental = true diff --git a/users/tao/helix.nix b/users/tao/helix.nix index bf31685..4df5daa 100644 --- a/users/tao/helix.nix +++ b/users/tao/helix.nix @@ -54,6 +54,12 @@ normal = { j = "move_line_up"; k = "move_line_down"; + z = { + j = "scroll_up"; + k = "scroll_down"; + }; + C-j = "scroll_up"; + C-k = "scroll_down"; }; normal.space = { l = "@:reload-all"; diff --git a/users/tao/nushell/extras/alias.nu b/users/tao/nushell/extras/alias.nu index b346fc6..b4854e2 100644 --- a/users/tao/nushell/extras/alias.nu +++ b/users/tao/nushell/extras/alias.nu @@ -35,6 +35,7 @@ alias jg = jj git clone --colocate alias jp = jj git push alias js = jj status alias jw = jj workspace update-stale +alias jt = jj log -r @ -T `description` def jm --wrapped [-r: string = "@", ...rest] { mut r = $r diff --git a/users/tao/nushell/extras/nix.nu b/users/tao/nushell/extras/nix.nu index 4b8feee..c782ef2 100644 --- a/users/tao/nushell/extras/nix.nu +++ b/users/tao/nushell/extras/nix.nu @@ -1,14 +1,3 @@ -alias nd = nix develop - -def ns [...packages: string] { - let packages = $packages | each {$"nixpkgs#($in)"} - nix shell ...$packages -} - -# def nr [package] { -# nix search nixpkgs $package -# } - def --wrapped rebuild [--force (-f), subcommand, ...rest] { if not ( df -h | detect columns --guess | where "Mounted on" == "/" or "Mounted on" == "/boot" | get Use% | each {parse "{usage}%" | get usage | into int} | flatten | all {$in < 99} @@ -27,7 +16,7 @@ def --wrapped rebuild [--force (-f), subcommand, ...rest] { } ulimit -n 65535 - sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --accept-flake-config --impure --verbose ...$rest o+e>| nom + sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --accept-flake-config --impure --show-trace --verbose ...$rest o+e>| nom if $env.LAST_EXIT_CODE == 0 { toastify send "rebuild" "done!" @@ -38,6 +27,17 @@ def --wrapped rebuild [--force (-f), subcommand, ...rest] { } } +alias nd = nix develop + +def ns [...packages: string] { + let packages = $packages | each {$"nixpkgs#($in)"} + nix shell ...$packages +} + +# def nr [package] { +# nix search nixpkgs $package +# } + def post-rebuild [] { rm -r ~/.config/helix/runtime/grammars/ hx --grammar fetch; hx --grammar build