nixos/home/fastfetch.nix
2026-01-14 21:24:19 +01:00

182 lines
No EOL
4.4 KiB
Nix

{ config, pkgs, ... }:
{
programs.fastfetch = {
enable = true;
settings = {
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json";
logo = {
type = "builtin";
height = 15;
width = 30;
padding = {
top = 5;
left = 3;
};
};
modules = [
"break"
{
type = "custom";
format = "Hardware";
}
{
type = "host";
key = " PC";
keyColor = "green";
}
{
type = "cpu";
key = " ";
keyColor = "green";
}
{
type = "gpu";
key = " 󰍛";
keyColor = "green";
}
{
type = "memory";
key = " 󰍛";
keyColor = "green";
}
{
type = "disk";
key = " ";
keyColor = "green";
}
{
type = "custom";
format = "";
}
"break"
{
type = "custom";
format = "Software";
}
{
type = "os";
key = " OS";
keyColor = "yellow";
}
{
type = "kernel";
key = " ";
keyColor = "yellow";
}
{
type = "bios";
key = " ";
keyColor = "yellow";
}
{
type = "packages";
key = " 󰏖";
keyColor = "yellow";
}
{
type = "shell";
key = " ";
keyColor = "yellow";
}
"break"
{
type = "de";
key = " DE";
keyColor = "blue";
}
{
type = "lm";
key = " ";
keyColor = "blue";
}
{
type = "wm";
key = " ";
keyColor = "blue";
}
{
type = "wmtheme";
key = " 󰉼";
keyColor = "blue";
}
{
type = "terminal";
key = " ";
keyColor = "blue";
}
{
type = "custom";
format = "";
}
"break"
{
type = "custom";
format = "Uptime / Age / DT";
}
{
type = "command";
key = " OS Age ";
keyColor = "magenta";
text = ''
birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days
'';
}
{
type = "uptime";
key = " Uptime ";
keyColor = "magenta";
}
{
type = "datetime";
key = " DateTime ";
keyColor = "magenta";
}
{
type = "custom";
format = "";
}
# Original commented colors block:
# { type = "colors"; }
{
type = "colors";
paddingLeft = 2;
symbol = "circle";
}
];
};
};
programs.hyfetch = {
enable = true;
settings = {
preset = "transgender";
mode = "rgb";
auto_detect_light_dark = true;
light_dark = "dark";
lightness = 0.65;
color_align = {
mode = "horizontal";
};
backend = "fastfetch";
args = null;
distro = null;
pride_month_disable = false;
custom_ascii_path = null;
};
};
}