zaneyos/config/fastfetch/default.nix
2024-07-12 23:03:27 -05:00

123 lines
3.7 KiB
Nix

{pkgs, ...}: {
programs.fastfetch = {
enable = true;
settings = {
logo = {
source = ./nixos.png;
type = "kitty-direct";
height = 15;
width = 30;
padding = {
top = 3;
left = 3;
};
};
modules = [
"break"
{
type = "custom";
format = "Hardware";
outputColor = "90";
}
{
type = "cpu";
key = " ";
keyColor = "35";
}
{
type = "gpu";
key = " 󰍛";
keyColor = "35";
}
{
type = "memory";
key = " 󰑭";
keyColor = "35";
}
{
type = "custom";
format = "";
outputColor = "90";
}
"break"
{
type = "custom";
format = "Software";
outputColor = "90";
}
{
type = "custom";
format = " OS -> ZaneyOS 2.2";
outputColor = "60";
}
{
type = "kernel";
key = " ";
keyColor = "31";
}
{
type = "packages";
key = " 󰏖";
keyColor = "31";
}
{
type = "shell";
key = " ";
keyColor = "31";
}
"break"
{
type = "wm";
key = " WM";
keyColor = "32";
}
{
type = "wmtheme";
key = " 󰉼";
keyColor = "32";
}
{
type = "terminal";
key = " ";
keyColor = "32";
}
{
type = "custom";
format = "";
outputColor = "90";
}
"break"
{
type = "custom";
format = "Uptime / Age";
outputColor = "90";
}
{
type = "command";
key = " ";
keyColor = "33";
text = pkgs.writeShellScriptBin "fs-bday" # bash
''
birth_install=$(stat -c %W /)
current=$(date +%s)
delta=$((current - birth_install))
delta_days=$((delta / 86400))
echo $delta_days days
'';
}
{
type = "uptime";
key = " ";
keyColor = "33";
}
{
type = "custom";
format = "";
outputColor = "90";
}
"break"
];
};
};
}