my NixOS and nix-darwin config
0
fork

Configure Feed

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

.

+395 -328
+3
hosts/Daedalus/default.nix
··· 86 86 87 87 security.pam.services.sudo_local.touchIdAuth = true; 88 88 89 + programs.fish.enable = true; 90 + 89 91 users.users.suri = { 90 92 name = "suri"; 91 93 home = "/Users/suri"; 94 + shell = pkgs.fish; 92 95 }; 93 96 94 97 # The platform the configuration will be used on.
+7 -1
modules/home/prompts/default.nix
··· 1 - { ... }: { imports = [ ./oh-my-posh ]; } 1 + { ... }: 2 + { 3 + imports = [ 4 + ./oh-my-posh 5 + ./starship 6 + ]; 7 + }
+22 -7
modules/home/prompts/starship/default.nix
··· 1 - { lib, home, ... }: 1 + { config, lib, ... }: 2 + 3 + with lib; 4 + 5 + let 6 + cfg = config.nyx.starship; 7 + in 2 8 { 3 9 4 - # programs.starship = { 5 - # enable = true; 10 + options.nyx.starship = { 11 + enable = mkEnableOption "Starship"; 12 + }; 13 + 14 + config = mkIf (cfg.enable) { 15 + programs.starship = { 16 + enable = true; 6 17 7 - # settings = 8 - # lib.mkForce (builtins.fromTOML (builtins.readFile ./starship.toml)); 9 - # }; 10 - # home.file.".config/starship.toml".source = lib.mkForce ./starship.toml; 18 + # settings = lib.mkForce (fromTOML (builtins.readFile ./starship.toml)); 19 + }; 20 + home.file.".config/starship.toml".source = 21 + 22 + config.lib.file.mkOutOfStoreSymlink 23 + "${config.home.homeDirectory}/Nyx/modules/home/prompts/starship/starship.toml"; 24 + 25 + }; 11 26 12 27 }
+345 -304
modules/home/prompts/starship/starship.toml
··· 1 - # Get editor completions based on the config schema 1 + # version: 1.0.0 2 2 "$schema" = 'https://starship.rs/config-schema.json' 3 3 4 - # ### --------- 5 - # ### "Power10" 6 - # ### --------- 7 - # - Variant 2: two line prompt, no background in top line, separators on left side, filling solid line in top row 8 - # - This preset is inspired by a [powerlevel10k](https://github.com/romkatv/powerlevel10k) configuration variant. 9 - # 10 - # - Recommended / tested with Font 'MesloLGS NF Regular' from: Meslo Nerd Font patched for Powerlevel10k 11 - # Link: https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#manual-font-installation 12 - # --> "Manual font installation", with currently 4 Font Types 4 + add_newline = true 5 + continuation_prompt = "[▸▹ ](dimmed white)" 6 + 13 7 14 - # - If you do not want the filling solid line in top row: 15 - # set the fill symbol to ' ' 16 - # - Shell [shell]: 17 - # If you want to see the content of the shell module, search for [shell] and change 'disabled = true' to false 18 - # - '$line_break': everything from the next line on refers to the second line of the prompt 19 - # - Some modules listed further down will not show up (all the time), as their default value is 'disabled = true' or 20 - # they are only displayed under certain conditions 21 - # - added but disabled modules: [battery], [time] 22 - # - if you want to see them: search for the module and set 'disabled' to 'false' 23 - # - Symbols: 24 - # Don't be confused if you don't see any "real" symbols here. If Nerd-fonts are installed on your system, it should work. 25 8 26 - # Customizing the prompt (and placing desired modules at desired position and sequence): 27 - # ╭╴ # \u256D\u2574 28 - # ╰╴ # \u2570\u2574 29 - format = """ 30 - [\u256D\u2574](fg:greydimmed)\ 31 - $os\ 32 - $shell\ 33 - $username\ 9 + format = """( $directory$nix_shell$container$fill$git_metrics\n)$cmd_duration\ 34 10 $hostname\ 11 + $localip\ 12 + $shlvl\ 13 + $shell\ 14 + $env_var\ 15 + $jobs\ 35 16 $sudo\ 36 - $directory\ 37 - $direnv\ 17 + $username\ 18 + $character""" 19 + 20 + right_format = """ 21 + $singularity\ 22 + $kubernetes\ 23 + $vcsh\ 24 + $fossil_branch\ 25 + ${custom.jj}\ 26 + $pijul_channel\ 27 + $docker_context\ 28 + $package\ 29 + $c\ 30 + $cpp\ 31 + $cmake\ 32 + $cobol\ 33 + $daml\ 34 + $dart\ 35 + $deno\ 36 + $dotnet\ 37 + $elixir\ 38 + $elm\ 39 + $erlang\ 40 + $fennel\ 41 + $fortran\ 42 + $golang\ 43 + $guix_shell\ 44 + $haskell\ 45 + $haxe\ 46 + $helm\ 47 + $java\ 48 + $julia\ 49 + $kotlin\ 50 + $gradle\ 51 + $lua\ 52 + $nim\ 53 + $nodejs\ 54 + $ocaml\ 55 + $opa\ 56 + $perl\ 38 57 $php\ 58 + $pulumi\ 59 + $purescript\ 39 60 $python\ 40 - $git_branch$git_commit$git_state$git_metrics$git_status\ 41 - [ ](fg:greydarker)\ 42 - $fill\ 43 - $fill\ 61 + $raku\ 62 + $rlang\ 63 + $red\ 64 + $ruby\ 65 + $rust\ 66 + $scala\ 67 + $solidity\ 68 + $swift\ 69 + $terraform\ 70 + $vlang\ 71 + $vagrant\ 72 + $xmake\ 73 + $zig\ 74 + $buf\ 75 + $conda\ 76 + $pixi\ 77 + $meson\ 78 + $spack\ 79 + $memory_usage\ 80 + $aws\ 81 + $gcloud\ 82 + $openstack\ 83 + $azure\ 84 + $crystal\ 85 + $custom\ 44 86 $status\ 45 - $jobs\ 46 - $memory_usage\ 47 - $cmd_duration\ 87 + $os\ 48 88 $battery\ 49 - $time\ 50 - $line_break\ 51 - \ 52 - [\u2570\u2574](fg:greydimmed)\ 53 - [$character]($style)""" 89 + $time""" 54 90 55 - # move the rest of the prompt to the right 56 - right_format = """ 57 - [$localip]($style)""" 91 + [fill] 92 + symbol = ' ' 58 93 59 - # Inserts a blank line between shell prompts: 60 - add_newline = true 94 + [character] 95 + format = "$symbol " 96 + success_symbol = "[◎](bold italic bright-yellow)" 97 + error_symbol = "[○](italic purple)" 98 + vimcmd_symbol = "[■](italic dimmed green)" 99 + # not supported in zsh 100 + vimcmd_replace_one_symbol = "◌" 101 + vimcmd_replace_symbol = "□" 102 + vimcmd_visual_symbol = "▼" 61 103 62 - # Color Palette 63 - palette = "Power10Gruv" 104 + [env_var.VIMSHELL] 105 + format = "[$env_value]($style)" 106 + style = 'green italic' 64 107 65 - [palettes.Power10] 66 - # only lowercase names 67 - greydimmed = '#424242' 68 - greydarker = '#242424' 69 - ossymbol = '#AAAAAA' # dimmed white 70 - user = 'green' 71 - userroot = 'red' 72 - sshsymbol = 'green' 73 - hostname = 'green' 74 - sudo = 'red' 75 - directory = 'cyan' 76 - php = '#7a86b8' # light blue 77 - python = 'yellow' 78 - # git start --- 79 - orangegit = '#E04D27' 80 - conflicted = 'red' 81 - ahead = 'yellow' 82 - behind = 'yellow' 83 - diverged = 'yellow' 84 - uptodate = 'green' 85 - untracked = 'red' 86 - stashed = '#A52A2A' # redbrown 87 - modified = '#C8AC00' # darker yellow 88 - staged = 'green' 89 - renamed = 'yellow' 90 - deleted = 'orange' 91 - # git end --- 92 - jobs = 'blue' 93 - memory = 'purple' 94 - duration = 'yellow' 95 - fill = '#424242' # greydimmed 96 - status = 'red' 97 - localip = 'green' 98 - shell = '#424242' # greydimmed 108 + [sudo] 109 + format = "[$symbol]($style)" 110 + style = "bold italic bright-purple" 111 + symbol = "⋈┈" 112 + disabled = false 99 113 100 - [palettes.Power10Gruv] 101 - greydimmed = '#424242' 102 - greydarker = '#242424' 103 - # only lowercase names 104 - # greydimmed = '#32302f' # Gruvbox dark gray 105 - # greydarker = '#1d2021' # Gruvbox darkest gray 106 - ossymbol = '#a89984' # Gruvbox light gray 107 - user = '#b8bb26' # Gruvbox green 108 - userroot = '#fb4934' # Gruvbox red 109 - sshsymbol = '#b8bb26' # Gruvbox green 110 - hostname = '#b8bb26' # Gruvbox green 111 - sudo = '#fb4934' # Gruvbox red 112 - directory = '#83a598' # Gruvbox blue 113 - php = '#d3869b' # Gruvbox purple 114 - python = '#fabd2f' # Gruvbox yellow 115 - # git start --- 116 - orangegit = '#fe8019' # Gruvbox orange 117 - conflicted = '#fb4934' # Gruvbox red 118 - ahead = '#fabd2f' # Gruvbox yellow 119 - behind = '#fabd2f' # Gruvbox yellow 120 - diverged = '#fabd2f' # Gruvbox yellow 121 - uptodate = '#b8bb26' # Gruvbox green 122 - untracked = '#fb4934' # Gruvbox red 123 - stashed = '#d65d0e' # Gruvbox dark orange 124 - modified = '#d79921' # Gruvbox dark yellow 125 - staged = '#b8bb26' # Gruvbox green 126 - renamed = '#fabd2f' # Gruvbox yellow 127 - deleted = '#fe8019' # Gruvbox orange 128 - # git end --- 129 - jobs = '#458588' # Gruvbox blue 130 - memory = '#d3869b' # Gruvbox purple 131 - duration = '#fabd2f' # Gruvbox yellow 132 - fill = '#32302f' # Gruvbox dark gray 133 - status = '#fb4934' # Gruvbox red 134 - localip = '#b8bb26' # Gruvbox green 135 - shell = '#32302f' # Gruvbox dark gray 136 - # Customization and activation of some modules: 137 - # Listed in the order of their position in the module rows above 138 - [os] 139 - format = "[$symbol]($style)()" 140 - style = "ossymbol" 114 + [username] 115 + style_user = "bright-yellow bold italic" 116 + style_root = "purple bold italic" 117 + format = "[⭘ $user]($style) " 141 118 disabled = false 119 + show_always = false 142 120 143 - [os.symbols] 144 - AIX = "AIX " 145 - Alpaquita = "\uf26a " # \uf26a  # \ue3a5\ue390  146 - AlmaLinux = "\uf31d " #  147 - Alpine = "\uf300 " # "" 148 - Amazon = "\uf270 " # "" 149 - Android = "\ue70e " # "" 150 - Arch = "\uf303 " # "" 151 - Artix = "\uf31f " #  152 - CentOS = "\uf304 " # "" 153 - Debian = "\uf306 " # "" 154 - DragonFly = "\ueef8 " #   🐉 155 - Emscripten = "\u26A1 " # ⚡ 156 - EndeavourOS = "\uf322 " # "" #  157 - Fedora = "\uf30a " # "" 158 - FreeBSD = "\uf30c " # "" 159 - Garuda = "\uf337 " # "" 160 - Gentoo = "\uf30d " # "" 161 - HardenedBSD = "\uf132 " #  162 - Illumos = "\uf326 " # "🐦" 163 - Kali = "\uf327 " #  164 - Linux = "\uf17c " # "" 165 - Mabox = "\uf1b2 " #  📦 166 - Macos = "\uf302 " # "" 167 - Manjaro = "\uf312 " # "" 168 - Mariner = "\ue7ae " # \ue7ae  169 - MidnightBSD = "\ue3e0 " # 🌘 170 - Mint = "\uf30e " # "" 171 - NetBSD = "\u2691 " # ⚑ 172 - NixOS = "\uf313 " # "" 173 - OpenBSD = "\uf328 " # "" 174 - OpenCloudOS = "\uf0c2 " #  175 - openEuler = "\u2208 " # \u2208 ∈ 176 - openSUSE = "\uf314 " # "" 177 - OracleLinux = "\u213A " # \u213A ℺ # ⊂⊃ \u2282\u2283 178 - Pop = "\uf32a " # "" 179 - Raspbian = "\uf315 " # "" 180 - Redhat = "\uf316 " # "" # 󱄛 181 - RedHatEnterprise = "\uf316 " # "" # 󱄛 182 - RockyLinux = "\uf32b " #  183 - Redox = "\uf331 " #  󰺕 184 - Solus = "\uf32d " # "" # " " 185 - SUSE = "\uef6d " # "" 186 - Ubuntu = "\uf31b " # "" 187 - Ultramarine = "󱙳 " # 🔷 188 - Unknown = "\uf108 " # "" 189 - Void = "\uf32e " #   190 - Windows = "\uf17a " # "" 121 + [directory] 122 + home_symbol = "~" 123 + truncation_length = 3 124 + truncation_symbol = "../" 125 + read_only = " ◈" 126 + use_os_path_sep = true 127 + style = "bold blue" 128 + format = '[$path]($style)[$read_only]($read_only_style)' 129 + repo_root_style = 'bold blue' 130 + repo_root_format = '[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style)' 191 131 192 - [shell] 193 - format = '[$indicator]($style)()' 194 - style = 'fg:shell' 195 - # empty indicator (''): e.g. if you do not want to see indicator for your standard shell 196 - zsh_indicator = '%_ ' # '%_ ' '󰰶 ' 197 - bash_indicator = '\$_ ' # "\uebca " ' ' '\$_ ' 198 - fish_indicator = '>> ' # "\uee41 " '󰈺 ' '>>_ ' 199 - powershell_indicator = '>_ ' # "\uebc7 " ' ' '>_' 200 - unknown_indicator = '?_ ' # '?_ ' ' ' 201 - disabled = true # set to false if you want to see the shell indicator 132 + [cmd_duration] 133 + format = "[◄ $duration ](italic white)" 202 134 203 - [username] 204 - format = "[\ueab6 ](fg:user bold)[$user]($style)[ ]()" # \u276F ❯ \ueab6  205 - style_user = 'fg:user bold' 206 - style_root = 'fg:userroot bold' 207 - show_always = false 208 - disabled = false 135 + [jobs] 136 + format = "[$symbol$number]($style) " 137 + style = "white" 138 + symbol = "[▶](blue italic)" 209 139 210 - [hostname] 211 - format = '[$ssh_symbol ](fg:sshsymbol bold)[$hostname](fg:hostname bold)[ ]()' 140 + [localip] 212 141 ssh_only = true 213 - ssh_symbol = "\ue36e" # \ue36e '' # '⇒' # ' ' # 'fi⇒' 214 - # trim_at = '.companyname.com' 142 + format = " ◯[$localipv4](bold magenta)" 215 143 disabled = false 216 144 217 - [sudo] 218 - format = "[\ueab6 ](fg:sudo bold)[as $symbol]($style)" # \u276F ❯ \ueab6  219 - style = 'fg:red bold' 220 - symbol = "\uf007! " # \uf007  # \uf21b \uedcc ' ' # ' ' 145 + [time] 221 146 disabled = false 147 + format = "[ $time]($style)" 148 + time_format = "%-I:%M%p" 149 + utc_time_offset = "local" 150 + style = "italic dimmed white" 222 151 223 - [directory] 224 - format = "[\ueab6 ](fg:directory bold)[$read_only]($read_only_style)[$repo_root]($repo_root_style)[$path ]($style)" # \u276F ❯ \ueab6  225 - style = 'fg:directory bold' 226 - home_symbol = "\uf015 ~" # \uf015 ' ~' 227 - read_only = "\uf023 " # \uf023 ' ' 228 - read_only_style = 'fg:directory' 229 - truncation_length = 3 230 - truncation_symbol = '…/' 231 - truncate_to_repo = true 232 - repo_root_format = "[\ueab6 ](fg:directory bold)[$read_only]($read_only_style)[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path ]($style)" # \u276F ❯ \ueab6  233 - repo_root_style = 'fg:directory bold' 234 - use_os_path_sep = true 235 - disabled = false 152 + [battery] 153 + format = "[ $percentage $symbol]($style)" 154 + full_symbol = "█" 155 + charging_symbol = "[↑](italic bold green)" 156 + discharging_symbol = "↓" 157 + unknown_symbol = "░" 158 + empty_symbol = "▃" 236 159 237 - [direnv] 238 - symbol = 'direnv' 239 - style = 'fg:greydimmed' 240 - format = "[\u3009$symbol $loaded/$allowed ]($style)" 241 - allowed_msg = 'a' # 'ok' # '✓' 242 - not_allowed_msg = '!a' # 'nok' # '!' 243 - denied_msg = 'x' # '✘' 244 - loaded_msg = '+' # "\ueabc" # \ueabc  # '->' # 'yo' # '󰗡' # \udb81\udde1 # '󱥸✓' # '󱥸✓' #  245 - unloaded_msg = '-' # "\ueabc!" # \ueabc ! # '->!' # 'no' # '󰅚' # '󱥸!' \udb86\udd78 246 - disabled = false 160 + [[battery.display]] 161 + threshold = 20 162 + style = "italic bold red" 247 163 248 - [php] 249 - format = " [\u3009[$symbol](php italic)($version )]($style)" 250 - style = 'fg:php' 251 - symbol = "php " # \ue73d  # 󰌟 164 + [[battery.display]] 165 + threshold = 60 166 + style = "italic dimmed bright-purple" 252 167 253 - [python] 254 - format = "[\u3009${symbol}${pyenv_prefix}(${version} )(($virtualenv) )]($style)" 255 - style = 'fg:python' 256 - symbol = "\ue73c " #  257 - pyenv_version_name = true 168 + [[battery.display]] 169 + threshold = 70 170 + style = "italic dimmed yellow" 258 171 259 - [git_branch] 260 - format = "[\u3009$symbol $branch(:$remote_branch)]($style)[ ]()" # \u3009 \uf460 ❯ 261 - style = 'fg:orangegit' 262 - symbol = "\ue702" # \ue702  263 - # ignore_branches = ['master', 'main'] 172 + # custom module for jj status 173 + [custom.jj] 174 + description = "The current jj status" 175 + when = "jj --ignore-working-copy root" 176 + symbol = "🥋 " 177 + command = ''' 178 + jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template ' 179 + separate(" ", 180 + change_id.shortest(4), 181 + bookmarks, 182 + "|", 183 + concat( 184 + if(conflict, "💥"), 185 + if(divergent, "🚧"), 186 + if(hidden, "👻"), 187 + if(immutable, "🔒"), 188 + ), 189 + raw_escape_sequence("\x1b[1;32m") ++ if(empty, "(empty)"), 190 + raw_escape_sequence("\x1b[1;32m") ++ coalesce( 191 + truncate_end(29, description.first_line(), "…"), 192 + "(no description set)", 193 + ) ++ raw_escape_sequence("\x1b[0m"), 194 + ) 195 + ' 196 + ''' 197 + 198 + # optionally disable git modules when JJ is found. 199 + # note that you'll need to add ${custom.git_branch}, ${custom.git_commit} etc 200 + # into format: https://starship.rs/config/#default-prompt-format 201 + [git_status] 202 + disabled = true 203 + 204 + [custom.git_status] 205 + when = "! jj --ignore-working-copy root" 206 + command = "starship module git_status" 207 + style = "" # This disables the default "(bold green)" style 208 + description = "Only show git_status if we're not in a jj repo" 264 209 265 210 [git_commit] 266 - format = '[\($hash$tag\)]($style)[ ]()' 267 - style = 'fg:orangegit' 268 - commit_hash_length = 8 269 - tag_symbol = " \uf412 " # \uf412 '  ' # '  '' 270 - tag_disabled = false 271 - disabled = false 211 + disabled = true 212 + 213 + [custom.git_commit] 214 + when = "! jj --ignore-working-copy root" 215 + command = "starship module git_commit" 216 + style = "" 217 + description = "Only show git_commit if we're not in a jj repo" 272 218 273 219 [git_metrics] 274 - format = '[\[+$added/]($added_style)[-$deleted\]]($deleted_style)[ ]()' 275 - added_style = 'fg:orangegit' 276 - deleted_style = 'fg:orangegit' 277 - disabled = false 220 + disabled = true 278 221 279 - [git_status] 280 - format = '([$all_status$ahead_behind]($style))' 281 - style = 'fg:orangegit' 282 - conflicted = "[\ueaaf${count} ](fg:conflicted)" #  283 - ahead = "[\u21E1${count} ](fg:ahead)" # ⇡ \ueaa0 284 - behind = "[\u21E3${unt} ](fg:behind)" # ⇣ \uea9d 285 - diverged = "[\u2195\u21E1${ahead_count} \u21E3${behind_count} ](fg:diverged)" # \u2195\u21E1 ⇕ ↕ ⇳ 󰹹 󰹺 󰧈 286 - up_to_date = "[\u2714 ](fg:uptodate)" # \u2714 ✔ \u2713 \ueab2 ✓ 287 - untracked = "[󰟉.${count} ](fg:untracked)" # 󰟉 \uf441 \ueb32 ﳇ ' ' # '? ' 288 - stashed = "[\ueb29${count} ](fg:stashed)" # \ueb29  '📦 '# ' ' # ' ' # ' ' # ' ' 289 - modified = "[\uf040${count} ](fg:modified)" # \uf040 󰷉 '📝' # '! ' #  #  #  \uf044 \uea73 290 - staged = "[\u26DF .${count} ](fg:staged)" # \u26DF  '+ ' 291 - renamed = "[\u0373${count} ](fg:renamed)" # \u0373 \ueb69  ' ' # '﫦' # ᴂ #  #  #  # ﳳ 292 - deleted = "[\uea81${count} ](fg:deleted)" # \uea81 \uf507 ﯊ '🗑 ' '- ' 293 - disabled = false 222 + [custom.git_metrics] 223 + when = "! jj --ignore-working-copy root" 224 + command = "starship module git_metrics" 225 + description = "Only show git_metrics if we're not in a jj repo" 226 + style = "" 294 227 295 - [fill] 296 - style = 'fg:fill' 297 - symbol = "\u2500" # "\u2500" "─" # no line: ' ' 228 + [git_branch] 229 + disabled = true 298 230 299 - [status] 300 - format = "[$symbol $status $hex_status( \uf0a2 $signal_number-$signal_name)]($style)" # \uf0a2  , \ueaa2 301 - style = 'fg:status' 302 - symbol = " \u2717" # \u2717 \uf467 \uebde  ✘ 303 - disabled = false 231 + [custom.git_branch] 232 + when = "! jj --ignore-working-copy root" 233 + command = "starship module git_branch" 234 + description = "Only show git_branch if we're not in a jj repo" 235 + style = "" 304 236 305 - [jobs] 306 - format = "[ \ueab5 ](fg:jobs bold)[$symbol $number]($style)" # \u3009 307 - style = 'fg:jobs' 308 - symbol = "\ueb7b" # \ueb7b  \uef0c 省 # '廒' # '󰜎' # '' 309 - symbol_threshold = 1 310 - number_threshold = 2 311 - disabled = false 237 + # [git_branch] 238 + # format = " [$branch(:$remote_branch)]($style)" 239 + # symbol = "[△](bold italic bright-blue)" 240 + # style = "italic bright-blue" 241 + # truncation_symbol = "⋯" 242 + # truncation_length = 11 243 + # ignore_branches = ["main", "master"] 244 + # only_attached = true 312 245 313 - [memory_usage] 314 - format = "[ \ueab5 ](fg:memory bold)[$symbol ${ram} ${swap}]($style)" # \u3009 315 - style = "fg:memory" 316 - symbol = "\ueb50 \uebcb" # "\ueb50 \uebcb" \uf1ec '﬙ 北' '﬙ 痢' # '﬙ 󰾵' # '󰍛 󰾵' # '﬙ 󰾴' # '﬙ 󰾶' '﬙ 󰣂' 317 - threshold = 75 318 - disabled = false 246 + # [git_metrics] 247 + # format = '([▴$added]($added_style))([▿$deleted]($deleted_style))' 248 + # added_style = 'italic dimmed green' 249 + # deleted_style = 'italic dimmed red' 250 + # ignore_submodules = true 251 + # disabled = false 319 252 320 - [cmd_duration] 321 - format = "[ \ueab5 \uf017 $duration]($style)" # \ueab5 \uf017   322 - style = 'fg:duration' 323 - min_time = 500 324 - disabled = false 253 + # [git_status] 254 + # style = "bold italic bright-blue" 255 + # format = "([⎪$ahead_behind$staged$modified$untracked$renamed$deleted$conflicted$stashed⎥]($style))" 256 + # conflicted = "[◪◦](italic bright-magenta)" 257 + # ahead = "[▴│[${count}](bold white)│](italic green)" 258 + # behind = "[▿│[${count}](bold white)│](italic red)" 259 + # diverged = "[◇ ▴┤[${ahead_count}](regular white)│▿┤[${behind_count}](regular white)│](italic bright-magenta)" 260 + # untracked = "[◌◦](italic bright-yellow)" 261 + # stashed = "[◃◈](italic white)" 262 + # modified = "[●◦](italic yellow)" 263 + # staged = "[▪┤[$count](bold white)│](italic bright-cyan)" 264 + # renamed = "[◎◦](italic bright-blue)" 265 + # deleted = "[✕](italic red)" 266 + 267 + [deno] 268 + format = " [deno](italic) [∫ $version](green bold)" 269 + version_format = "${raw}" 270 + 271 + [lua] 272 + format = " [lua](italic) [${symbol}${version}]($style)" 273 + version_format = "${raw}" 274 + symbol = "⨀ " 275 + style = "bold bright-yellow" 276 + 277 + [nodejs] 278 + format = " [node](italic) [◫ ($version)](bold bright-green)" 279 + version_format = "${raw}" 280 + detect_files = ["package-lock.json", "yarn.lock"] 281 + detect_folders = ["node_modules"] 282 + detect_extensions = [] 325 283 326 - [battery] 327 - format = "[ \ueab5 $symbol$percentage]($style)" 328 - full_symbol = '󰁹 ' 329 - charging_symbol = '󰂄 ' 330 - discharging_symbol = '󰂃 ' 331 - unknown_symbol = '󰁽? ' 332 - empty_symbol = '󰂎 ' 333 - disabled = true # set to 'false', if you want to see the battery status 284 + [python] 285 + format = " [py](italic) [${symbol}${version}]($style)" 286 + symbol = "[⌉](bold bright-blue)⌊ " 287 + version_format = "${raw}" 288 + style = "bold bright-yellow" 334 289 335 - [[battery.display]] 336 - threshold = 100 # show always 337 - style = 'fg:greydimmed' 290 + [ruby] 291 + format = " [rb](italic) [${symbol}${version}]($style)" 292 + symbol = "◆ " 293 + version_format = "${raw}" 294 + style = "bold red" 338 295 339 - [time] 340 - format = "[ \ueab5 $time]($style)" 341 - style = 'fg:greydimmed' 342 - disabled = false # set to 'false', if you want to see the time 296 + [rust] 297 + disabled = true 298 + format = " [rs](italic) [$symbol$version]($style)" 299 + symbol = "" 300 + version_format = "${raw}" 301 + style = "bold red" 343 302 344 - [localip] 345 - format = '[$localipv4](fg:localip bold)' 346 - ssh_only = true 347 - disabled = false 303 + [package] 304 + format = " [pkg](italic dimmed) [$symbol$version]($style)" 305 + version_format = "${raw}" 306 + symbol = "◨ " 307 + style = "dimmed yellow italic bold" 308 + 309 + [swift] 310 + format = " [sw](italic) [${symbol}${version}]($style)" 311 + symbol = "◁ " 312 + style = "bold bright-red" 313 + version_format = "${raw}" 314 + 315 + [aws] 316 + disabled = true 317 + format = " [aws](italic) [$symbol $profile $region]($style)" 318 + style = "bold blue" 319 + symbol = "▲ " 320 + 321 + [buf] 322 + symbol = "■ " 323 + format = " [buf](italic) [$symbol $version $buf_version]($style)" 324 + 325 + [c] 326 + symbol = "ℂ " 327 + format = " [$symbol($version(-$name))]($style)" 328 + 329 + [cpp] 330 + symbol = "ℂ " 331 + format = " [$symbol($version(-$name))]($style)" 332 + 333 + [conda] 334 + symbol = "◯ " 335 + format = " conda [$symbol$environment]($style)" 336 + 337 + [pixi] 338 + symbol = "■ " 339 + format = " pixi [$symbol$version ($environment )]($style)" 340 + 341 + [dart] 342 + symbol = "◁◅ " 343 + format = " dart [$symbol($version )]($style)" 344 + 345 + [docker_context] 346 + symbol = "◧ " 347 + format = " docker [$symbol$context]($style)" 348 + 349 + [elixir] 350 + symbol = "△ " 351 + format = " exs [$symbol $version OTP $otp_version ]($style)" 352 + 353 + [elm] 354 + symbol = "◩ " 355 + format = " elm [$symbol($version )]($style)" 356 + 357 + [golang] 358 + symbol = "∩ " 359 + format = " go [$symbol($version )]($style)" 360 + 361 + [haskell] 362 + symbol = "❯λ " 363 + format = " hs [$symbol($version )]($style)" 364 + 365 + [java] 366 + symbol = "∪ " 367 + format = " java [${symbol}(${version} )]($style)" 368 + 369 + [julia] 370 + symbol = "◎ " 371 + format = " jl [$symbol($version )]($style)" 372 + 373 + [memory_usage] 374 + symbol = "▪▫▪ " 375 + format = " mem [${ram}( ${swap})]($style)" 376 + 377 + [nim] 378 + symbol = "▴▲▴ " 379 + format = " nim [$symbol($version )]($style)" 380 + 381 + [nix_shell] 382 + style = 'bold italic dimmed blue' 383 + symbol = '' 384 + format = '[$symbol nix ⎪]($style) [$name](italic dimmed white)' 385 + 386 + [spack] 387 + symbol = "◇ " 388 + format = " spack [$symbol$environment]($style)"
+1
modules/home/shells/default.nix
··· 12 12 imports = [ 13 13 14 14 ./fish 15 + 15 16 ./zsh 16 17 17 18 ];
+11 -14
modules/home/shells/fish/default.nix
··· 17 17 18 18 config = mkIf (cfg.enable) { 19 19 20 - home.packages = with pkgs; [ 21 - fish 22 - fd 23 - eza 24 - ]; 25 - 26 20 home.file.".config/fish/conf.d/nix-env.fish".source = ./nix-fix.fish; 27 21 28 22 programs.fish = { ··· 36 30 ssh-add ~/.ssh/ucsc_gitlab &> /dev/null 37 31 38 32 eval "$(zoxide init fish)" 39 - eval "$(starship init fish)" 33 + 34 + direnv hook fish | source 35 + set -g direnv_fish_mode eval_on_arrow 36 + 37 + COMPLETE=fish jj | source 38 + 39 + starship init fish | source 40 40 41 - enable_transience 41 + # ${pkgs.oh-my-posh}/bin/oh-my-posh init fish --config ${config.home.homeDirectory}/.config/oh-my-posh/theme.toml &> /dev/null 42 + 42 43 ''; 43 44 44 45 shellAliases = { ··· 51 52 52 53 "cp" = "cp -v"; 53 54 "ddf" = "df -h"; 54 - "etc" = "erd -H"; 55 55 "mkdir" = "mkdir -p"; 56 56 "mv" = "mv -v"; 57 57 "rm" = "rm -v"; 58 - "rr" = "rm -rf"; 59 - 60 - "fcd" = 61 - ''cd "$(find ~/coding/ ~/storage/ -type d -not \( -path "*/.git/*" -o -path "*/target/*" -o -path "*/.venv/*" -o -path "*/node_modules/*" -o -path "*/venv/*" -o -path "*/build/*" -o -path "*/.*/*" \) -print 2>/dev/null | fzf)" ''; 62 - 63 58 }; 64 59 65 60 shellAbbrs = { ··· 68 63 cc = "cargo check"; 69 64 cdo = "cargo doc --open"; 70 65 cr = "cargo run"; 66 + rr = "rm -rf"; 67 + zh = "suri_zellij_session_helper"; 71 68 72 69 # jujutsu abbreviations 73 70 jjn = "jj new";
+4
modules/home/tools/default.nix
··· 15 15 home.packages = with pkgs; [ 16 16 jujutsu 17 17 18 + zoxide 19 + eza 20 + fd 21 + 18 22 ripgrep 19 23 bat 20 24 fastfetch
-1
users/suri/Daedalus.nix
··· 5 5 nyx.aerospace.enable = true; 6 6 nyx.ghostty.enable = true; 7 7 nyx.orbstack.enable = true; 8 - 9 8 10 9 }
+2 -1
users/suri/common.nix
··· 4 4 5 5 imports = [ ../../modules/home ]; 6 6 7 - nyx.oh-my-posh.enable = true; 7 + # nyx.oh-my-posh.enable = true; 8 + nyx.starship.enable = true; 8 9 # nyx.zsh.enable = true; 9 10 nyx.fish.enable = true; 10 11 nyx.zellij.enable = true;