{ osConfig, lib, ... }: let isDesktop = osConfig.myConfig.isDesktop; in { programs.fish = { enable = true; interactiveShellInit = '' set fish_greeting # disable greeting fish_add_path $HOME/.local/bin ''; shellAliases = { ls = "eza --icons auto"; ll = "eza -l -g --icons auto"; la = "eza -a --icons auto"; nrb = "nh os switch"; } // lib.optionalAttrs isDesktop { ssh = "kitten ssh"; nrbs = "nh os switch . -H server --target-host vmohammad@192.168.1.31 --build-host localhost --elevation-strategy passwordless"; }; loginShellInit = '' if set -q XDG_VTNR && test "$XDG_VTNR" -eq 1 && uwsm check may-start ${ if osConfig.myConfig.desktops.niri.enable or false then "exec uwsm start niri-uwsm.desktop" else if osConfig.myConfig.desktops.mango.enable or false then "exec uwsm start mango-uwsm.desktop" else if osConfig.myConfig.desktops.hyprland.enable or false then "exec uwsm start hyprland-uwsm.desktop" else "" } end ''; }; programs.starship = { enable = true; enableFishIntegration = true; settings = { add_newline = false; character = { success_symbol = "[➜](bold green)"; error_symbol = "[➜](bold red)"; }; }; }; programs.zoxide = { enable = true; enableFishIntegration = true; options = [ "--cmd" "cd" ]; }; programs.direnv = { enable = true; nix-direnv.enable = true; enableFishIntegration = true; }; programs.devenv = { enable = true; enableFishIntegration = true; }; programs.eza.enable = true; programs.fastfetch = { enable = true; settings = { modules = [ "title" "separator" "os" "host" "kernel" "uptime" "shell" "display" "de" "wm" "cursor" "terminal" "cpu" "gpu" ] ++ lib.optionals isDesktop [ { "type" = "command"; "key" = "Mouse"; "text" = "wl-mouse -j info | jq -r '\"\\(.name) @ \\(.battery_percent)%\"' | sed 's/ (dongle)//; s/ (wired)//'"; } ] ++ [ "memory" "swap" "disk" "break" "colors" ]; }; }; }