My NixOS and Home Manager configurations
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

switch from starship jujutsu patch to config

no more rust builds yippee

quasigod 009371b4 55374370

+24 -8
+24 -8
modules/apps/shell.nix
··· 16 16 }; 17 17 starship = { 18 18 enable = true; 19 - package = pkgs.starship.overrideAttrs { 20 - patches = pkgs.fetchurl { 21 - url = "https://patch-diff.githubusercontent.com/raw/starship/starship/pull/6089.patch"; 22 - hash = "sha256-6hSVUvVRr8UHHrfgzn/JOooELxz8xvZQwyQY5KJLvPU="; 23 - }; 24 - }; 25 19 settings = { 26 20 format = "$all"; 27 21 character = { ··· 29 23 error_symbol = "[➜](maroon)"; 30 24 }; 31 25 shell.disabled = false; 32 - # For jujutsu 26 + jobs.disabled = true; # TODO atuin creates a job during the prompt closure and the symbol_threshold option is bugged 27 + # Jujutsu - https://github.com/jj-vcs/jj/wiki/Starship 28 + custom.jj = { 29 + command = '' 30 + jj log --revisions @ --limit 1 --ignore-working-copy --no-graph --color always --template ' 31 + separate(" ", 32 + bookmarks.map(|x| truncate_end(10, x.name(), "…")).join(" "), 33 + tags.map(|x| truncate_end(10, x.name(), "…")).join(" "), 34 + surround("\"", "\"", truncate_end(24, description.first_line(), "…")), 35 + if(conflict, "conflict"), 36 + if(divergent, "divergent"), 37 + if(hidden, "hidden"), 38 + ) 39 + ' 40 + ''; 41 + when = "jj --ignore-working-copy root"; 42 + symbol = "jj "; 43 + }; 44 + custom.jjstate = { 45 + command = '' 46 + jj log -r@ -n1 --ignore-working-copy --no-graph -T "" --stat | tail -n1 | sd "(\d+) files? changed, (\d+) insertions?\(\+\), (\d+) deletions?\(-\)" ' ''\${1}m ''\${2}+ ''\${3}-' | sd " 0." "" 47 + ''; 48 + when = "jj --ignore-working-copy root"; 49 + }; 33 50 git_branch.disabled = true; 34 51 git_commit.disabled = true; 35 52 git_state.disabled = true; 36 53 git_metrics.disabled = true; 37 54 git_status.disabled = true; 38 - jobs.disabled = true; # TODO atuin creates a job during the prompt closure and the symbol_threshold option is bugged 39 55 }; 40 56 }; 41 57 atuin = {