Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111{ 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" ]; }; };}