From 30ea04463295e18eadb6300a2146b1dec4895d5d Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Tue, 28 Oct 2025 20:39:24 -0700 Subject: [PATCH] stef --- extras/dev.nix | 5 +++++ systems/BASED.nix | 2 +- users/tao/cargo.toml | 11 +++++------ users/tao/nushell/extras/completions-just.nu | 8 ++++++++ 4 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 users/tao/nushell/extras/completions-just.nu diff --git a/extras/dev.nix b/extras/dev.nix index a959b57..7ee9265 100644 --- a/extras/dev.nix +++ b/extras/dev.nix @@ -1,4 +1,8 @@ {pkgs, ...}: { + nix.extraOptions = '' + extra-substituters = https://devenv.cachix.org + extra-trusted-public-keys = devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= + ''; services.lorri.enable = true; services.scx.enable = true; @@ -37,6 +41,7 @@ hyperfine jujutsu just + just-lsp lldb mask mprocs diff --git a/systems/BASED.nix b/systems/BASED.nix index 654b4ac..983fc2f 100644 --- a/systems/BASED.nix +++ b/systems/BASED.nix @@ -169,7 +169,7 @@ experimental-features = "nix-command flakes"; auto-optimise-store = true; # adding logged in users allows for passwordless root - # trusted-users = ["root"]; + trusted-users = ["root" "@wheel"]; system-features = [ "benchmark" "big-parallel" diff --git a/users/tao/cargo.toml b/users/tao/cargo.toml index 166dbbf..031e2a6 100644 --- a/users/tao/cargo.toml +++ b/users/tao/cargo.toml @@ -5,9 +5,9 @@ d = "doc --no-deps --open" [build] target = "x86_64-unknown-linux-gnu" -# rustc-wrapper = "${pkgs.sccache}/bin/sccache" -# rustc-wrapper = "/path/to/sccache" -rustflags = ["-Zthreads=0"] +target-dir = "~/.cache/cargo/target" +rustflags = ["-Z", "threads=8"] +rustc-wrapper = "/path/to/sccache" [unstable] codegen-backend = true @@ -34,9 +34,8 @@ lto = "fat" # rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"] [target.x86_64-unknown-linux-gnu] -# linker = "musl-gcc" -# linker = "clang" -# rustflags = ["-Ctarget-cpu=native", "-Clink-arg=--ld-path=wild"] +linker = "clang" +rustflags = ["-Ctarget-cpu=native", "-Clink-arg=--ld-path=wild"] # jonhoo # https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent diff --git a/users/tao/nushell/extras/completions-just.nu b/users/tao/nushell/extras/completions-just.nu new file mode 100644 index 0000000..ab10910 --- /dev/null +++ b/users/tao/nushell/extras/completions-just.nu @@ -0,0 +1,8 @@ +def "nu-complete just" [] { + (^just --dump --unstable --dump-format json | from json).recipes | transpose recipe data | flatten | where {|row| $row.private == false } | select recipe doc parameters | rename value description +} + +# Just: A Command Runner +export extern "just" [ + ...recipe: string@"nu-complete just", # Recipe(s) to run, may be with argument(s) +]