From 42691f6f40784ad7eb0784a68fb6d5d868121177 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Wed, 3 Dec 2025 20:29:05 +0000 Subject: [PATCH] Update fastfetch.nix --- apps/fastfetch.nix | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/apps/fastfetch.nix b/apps/fastfetch.nix index 41d26e8..31a112b 100644 --- a/apps/fastfetch.nix +++ b/apps/fastfetch.nix @@ -1,11 +1,16 @@ { config, pkgs, ... }: { - # Install fastfetch + # Install fastfetch and nerd fonts environment.systemPackages = with pkgs; [ fastfetch ]; + # Install Nerd Fonts for icon support + fonts.packages = with pkgs; [ + (nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" "Meslo" ]; }) + ]; + # Create the fastfetch config file with unicode icons environment.etc."fastfetch/config.jsonc".text = '' { @@ -122,25 +127,15 @@ ''; # Set up bash with fastfetch and a nice prompt - programs.bash.interactiveShellInit = '' - # Run fastfetch on terminal start (but not in non-interactive shells) - if [[ $- == *i* ]]; then - ${pkgs.fastfetch}/bin/fastfetch --config /etc/fastfetch/config.jsonc - fi - + programs.bash.promptInit = '' + # Stylish prompt with icons # Color definitions RESET="\[\033[0m\]" - BOLD="\[\033[1m\]" - - # Colors CYAN="\[\033[0;36m\]" BLUE="\[\033[0;34m\]" PURPLE="\[\033[0;35m\]" GREEN="\[\033[0;32m\]" YELLOW="\[\033[0;33m\]" - RED="\[\033[0;31m\]" - - # Bold colors BCYAN="\[\033[1;36m\]" BBLUE="\[\033[1;34m\]" BPURPLE="\[\033[1;35m\]" @@ -151,9 +146,14 @@ git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } - # Stylish prompt with icons - # Shows: ╭─ user@host ~/current/directory (git-branch) - # ╰─❯ + # Set the prompt PS1="''${RESET}''${BCYAN}╭─''${RESET} ''${BPURPLE}\u''${RESET}''${CYAN}@''${RESET}''${BBLUE}\h''${RESET} ''${BGREEN} \w''${RESET}''${YELLOW}\$(parse_git_branch)''${RESET}\n''${BCYAN}╰─''${BPURPLE}❯''${RESET} " ''; + + programs.bash.interactiveShellInit = '' + # Run fastfetch on terminal start + if [[ $- == *i* ]]; then + ${pkgs.fastfetch}/bin/fastfetch --config /etc/fastfetch/config.jsonc + fi + ''; }