This commit is contained in:
Tao Tien 2026-01-16 21:57:07 -08:00
parent 89042ffe3b
commit a4ef3a984f
6 changed files with 23 additions and 13 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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<ret>";

View file

@ -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

View file

@ -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