From 9d5d256af87bb6aaa304e9c339ba593aa3868249 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Tue, 17 Feb 2026 20:34:46 -0500 Subject: [PATCH] chore: custom fastfetch logo --- .../evanreichard@mac-va-mbp-work/default.nix | 4 + .../evanreichard@mac-va-mbp-work/prophet.txt | 19 ++++ .../terminal/bash/config/fastfetch.jsonc | 93 ----------------- .../terminal/bash/config/fastfetch.nix | 99 +++++++++++++++++++ .../home/programs/terminal/bash/default.nix | 11 ++- 5 files changed, 129 insertions(+), 97 deletions(-) create mode 100644 homes/aarch64-darwin/evanreichard@mac-va-mbp-work/prophet.txt delete mode 100755 modules/home/programs/terminal/bash/config/fastfetch.jsonc create mode 100755 modules/home/programs/terminal/bash/config/fastfetch.nix diff --git a/homes/aarch64-darwin/evanreichard@mac-va-mbp-work/default.nix b/homes/aarch64-darwin/evanreichard@mac-va-mbp-work/default.nix index d6c60bf..4da8f97 100755 --- a/homes/aarch64-darwin/evanreichard@mac-va-mbp-work/default.nix +++ b/homes/aarch64-darwin/evanreichard@mac-va-mbp-work/default.nix @@ -22,6 +22,10 @@ in }; terminal = { + bash = { + enable = true; + customFastFetchLogo = ./prophet.txt; + }; aws = enabled; btop = enabled; claude-code = enabled; diff --git a/homes/aarch64-darwin/evanreichard@mac-va-mbp-work/prophet.txt b/homes/aarch64-darwin/evanreichard@mac-va-mbp-work/prophet.txt new file mode 100644 index 0000000..7d6fa6a --- /dev/null +++ b/homes/aarch64-darwin/evanreichard@mac-va-mbp-work/prophet.txt @@ -0,0 +1,19 @@ +                :+++++++=.         +                 =++++++++:        +                  -++++++++:       +                   -++++++++-      +                    :++++++++-     +          .-=======. :++++++++=    +         :********+   .++++++++=   +        -********=     .=+++++++=. +       -********-        =++++++++ +      =********-          =++++++: +     =********:            -++++.  +    +********.              -+=.   +  .+*******+.                      + .+*******+. :%#%%%%%%%%%%#%-      +:********=    +%%%%%%%%%%%%*       +********=      =%%%%%%%%%%+        +.+*****-        -%%%%%%%%=         +  +***-           ......           +   =*:                             diff --git a/modules/home/programs/terminal/bash/config/fastfetch.jsonc b/modules/home/programs/terminal/bash/config/fastfetch.jsonc deleted file mode 100755 index cff1f0c..0000000 --- a/modules/home/programs/terminal/bash/config/fastfetch.jsonc +++ /dev/null @@ -1,93 +0,0 @@ -{ - "modules": [ - { - "type": "separator", - "string": "", - "length": 35, - }, - { - "type": "title", - "format": "Hardware Information", - }, - { - "type": "cpu", - "key": " ", - }, - { - "type": "memory", - "key": " ", - }, - { - "type": "display", - "key": "󰍹 ", - }, - { - "type": "separator", - }, - { - "type": "title", - "format": "Software Information", - }, - { - "type": "os", - "key": " ", - }, - { - "type": "kernel", - "key": " ", - }, - { - "type": "terminal", - "key": " ", - }, - { - "type": "packages", - "key": "󰏖 ", - }, - { - "type": "terminalfont", - "key": " ", - }, - { - "type": "separator", - }, - { - "type": "title", - "format": "Network Information", - }, - { - "type": "publicip", - "key": " ", - }, - { - "type": "localip", - "key": " ", - }, - { - "type": "separator", - }, - { - "type": "custom", - "format": " {#white} {#red} {#green} {#yellow} {#blue} {#magenta} {#cyan} {#white}\n", - }, - ], - "display": { - "separator": "  ", - "key": { - "width": 7, - }, - "color": { - "keys": "yellow", - "title": "blue", - }, - }, - "settings": { - "kernelFormat": "minimal", - "memoryUnit": "gib", - "temperatureUnit": "celsius", - "publicIpTimeout": 2000, - "publicIpHost": "http://ident.me", - "diskUnit": "gib", - "showDisks": ["/"], - }, -} diff --git a/modules/home/programs/terminal/bash/config/fastfetch.nix b/modules/home/programs/terminal/bash/config/fastfetch.nix new file mode 100755 index 0000000..e7701ce --- /dev/null +++ b/modules/home/programs/terminal/bash/config/fastfetch.nix @@ -0,0 +1,99 @@ +{ cfg }: +builtins.toJSON ( + { + modules = [ + { + type = "separator"; + string = ""; + length = 35; + } + { + type = "title"; + format = "Hardware Information"; + } + { + type = "cpu"; + key = " "; + } + { + type = "memory"; + key = " "; + } + { + type = "display"; + key = "󰍹 "; + } + { type = "separator"; } + { + type = "title"; + format = "Software Information"; + } + { + type = "os"; + key = " "; + } + { + type = "kernel"; + key = " "; + } + { + type = "terminal"; + key = " "; + } + { + type = "packages"; + key = "󰏖 "; + } + { + type = "terminalfont"; + key = " "; + } + { type = "separator"; } + { + type = "title"; + format = "Network Information"; + } + { + type = "publicip"; + key = " "; + } + { + type = "localip"; + key = " "; + } + { type = "separator"; } + { + type = "custom"; + format = " {#white} {#red} {#green} {#yellow} {#blue} {#magenta} {#cyan} {#white}\n"; + } + ]; + display = { + separator = "  "; + key.width = 7; + color = { + keys = "yellow"; + title = "blue"; + }; + }; + settings = { + kernelFormat = "minimal"; + memoryUnit = "gib"; + temperatureUnit = "celsius"; + publicIpTimeout = 2000; + publicIpHost = "http://ident.me"; + diskUnit = "gib"; + showDisks = [ "/" ]; + }; + } + // ( + if cfg.customFastFetchLogo != null then + { + logo = { + source = cfg.customFastFetchLogo; + type = "file"; + }; + } + else + { } + ) +) diff --git a/modules/home/programs/terminal/bash/default.nix b/modules/home/programs/terminal/bash/default.nix index 8512cd0..0eeeb3f 100755 --- a/modules/home/programs/terminal/bash/default.nix +++ b/modules/home/programs/terminal/bash/default.nix @@ -5,13 +5,16 @@ , ... }: let - inherit (lib) mkIf optionalAttrs; + inherit (lib.${namespace}) mkOpt; + inherit (lib) mkEnableOption mkIf optionalAttrs; inherit (pkgs.stdenv) isLinux isDarwin; + cfg = config.${namespace}.programs.terminal.bash; in { - options.${namespace}.programs.terminal.bash = { - enable = lib.mkEnableOption "bash"; + options.${namespace}.programs.terminal.bash = with lib.types; { + enable = mkEnableOption "bash"; + customFastFetchLogo = mkOpt (nullOr path) null "custom fast fetch logo path"; }; config = mkIf cfg.enable { @@ -76,7 +79,7 @@ in nerd-fonts.meslo-lg ]; - home.file.".config/fastfetch/config.jsonc".text = builtins.readFile ./config/fastfetch.jsonc; + home.file.".config/fastfetch/config.jsonc".text = import ./config/fastfetch.nix { inherit cfg; }; home.file.".sqliterc".text = builtins.readFile ./config/.sqliterc; }; }