dot.nix/common/fastfetch/default.nix

95 lines
2.2 KiB
Nix

{
lib,
pkgs,
config,
...
}:
{
programs.fastfetch =
let
hostname = config.home.sessionVariables.HOSTNAME;
logoFile = ./. + "/host/${hostname}.txt";
in
{
enable = true;
settings = {
logo = {
# Created with Chafa
source = builtins.readFile logoFile;
type = "data";
position = "left";
padding = {
top = 0;
right = 0;
};
};
display = {
separator = " ";
};
modules = [
{
key = "";
type = "custom";
}
{
key = " {#31} user {#keys}";
type = "title";
format = "{user-name}";
}
{
key = " {#32}󰇅 host {#keys}";
type = "title";
format = "{host-name}";
}
{
key = " {#33}󰅐 uptime {#keys}";
type = "uptime";
}
{
key = " {#34}{icon} distro {#keys}";
type = "os";
}
{
key = " {#36}󰇄 desktop {#keys}";
type = "de";
}
{
key = " {#32} shell {#keys}";
type = "shell";
}
{
key = " {#33}󰍛 cpu {#keys}";
type = "cpu";
showPeCoreCount = true;
}
{
key = " {#34}󰉉 disk {#keys}";
type = "disk";
folders = "/";
}
{
key = " {#35} memory {#keys}";
type = "memory";
}
{
key = " {#36}󰩟 network {#keys}";
type = "localip";
format = "{ipv4} ({ifname})";
}
{
key = "";
type = "custom";
}
{
key = " {#39} colors {#keys}";
type = "colors";
symbol = "circle";
}
{
key = "";
type = "custom";
}
];
};
};
}