fixed fastfetch

This commit is contained in:
2026-02-09 14:26:33 -08:00
parent 47ca41fbb2
commit 0fd00fc8cc
+12 -3
View File
@@ -8,15 +8,19 @@
let let
# Map hostnames to their image files # Map hostnames to their image files
hostImages = { hostImages = {
"acheron" = "${configPath}/assets/pfp/nerv-color.png";
"buildbox" = "${configPath}/assets/pfp/nerv-color.png";
"ender-ml" = "${configPath}/assets/pfp/nerv-color.png";
"eva-01" = "${configPath}/assets/pfp/eva-01.jpg"; "eva-01" = "${configPath}/assets/pfp/eva-01.jpg";
"eva-02" = "${configPath}/assets/pfp/eva-02.png"; "eva-02" = "${configPath}/assets/pfp/eva-02.png";
"eva-03" = "${configPath}/assets/pfp/eva-03.png"; "eva-03" = "${configPath}/assets/pfp/eva-03.png";
"buildbox" = "${configPath}/assets/pfp/neon-nerv.png";
"acheron" = "${configPath}/assets/pfp/neon-nerv.png";
}; };
# Get the image path for the current host, or null if not found # Get the image path for the current host, or null if not found
hostImage = hostImages.${hostname} or null; hostImage = hostImages.${hostname} or null;
# Detect if terminal is Kitty
isKitty = builtins.getEnv "TERM" == "xterm-kitty" || builtins.getEnv "TERMINAL" == "kitty";
in in
{ {
@@ -26,7 +30,7 @@ in
settings = { settings = {
logo = lib.mkIf (hostImage != null) { logo = lib.mkIf (hostImage != null) {
source = hostImage; source = hostImage;
type = "kitty"; type = if isKitty then "kitty" else "chafa";
height = 20; height = 20;
width = 60; width = 60;
padding = { padding = {
@@ -135,6 +139,11 @@ in
key = " 󰂀 battery"; key = " 󰂀 battery";
keyColor = "33"; keyColor = "33";
} }
{
type = "uptime";
key = " 󰔟 uptime";
keyColor = "33";
}
{ {
type = "localip"; type = "localip";
key = " 󰩟 local ip"; key = " 󰩟 local ip";