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
# Map hostnames to their image files
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-02" = "${configPath}/assets/pfp/eva-02.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
hostImage = hostImages.${hostname} or null;
# Detect if terminal is Kitty
isKitty = builtins.getEnv "TERM" == "xterm-kitty" || builtins.getEnv "TERMINAL" == "kitty";
in
{
@@ -26,7 +30,7 @@ in
settings = {
logo = lib.mkIf (hostImage != null) {
source = hostImage;
type = "kitty";
type = if isKitty then "kitty" else "chafa";
height = 20;
width = 60;
padding = {
@@ -135,6 +139,11 @@ in
key = " 󰂀 battery";
keyColor = "33";
}
{
type = "uptime";
key = " 󰔟 uptime";
keyColor = "33";
}
{
type = "localip";
key = " 󰩟 local ip";