2024-12-09 01:15:55 +00:00
|
|
|
{ x, pkgs, lib, config, True, ... }:
|
2024-11-21 09:24:15 +00:00
|
|
|
|
|
|
|
with lib;
|
2024-12-09 01:15:55 +00:00
|
|
|
with x;
|
2024-11-21 09:24:15 +00:00
|
|
|
let cfg = config.module.programs.cli.fetch;
|
|
|
|
in {
|
2024-12-09 01:15:55 +00:00
|
|
|
options = { module.programs.cli.fetch = { enable = mkBool; }; };
|
2024-11-21 09:24:15 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [ onefetch ];
|
|
|
|
programs.fastfetch = True // {
|
|
|
|
settings = {
|
|
|
|
logo = {
|
|
|
|
type = "builtin";
|
|
|
|
source = "nixos_small";
|
|
|
|
padding = {
|
|
|
|
left = 1;
|
|
|
|
right = 2;
|
|
|
|
top = 1;
|
|
|
|
};
|
|
|
|
color = {
|
|
|
|
"1" = "cyan";
|
|
|
|
"2" = "blue";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
display = {
|
|
|
|
separator = ": ";
|
|
|
|
color = {
|
|
|
|
keys = "cyan";
|
|
|
|
title = "blue";
|
|
|
|
};
|
|
|
|
size = {
|
|
|
|
ndigits = 2;
|
|
|
|
maxPrefix = "GB";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
type = "title";
|
|
|
|
color = {
|
|
|
|
user = "cyan";
|
|
|
|
at = "cyan";
|
|
|
|
host = "cyan";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
type = "uptime";
|
|
|
|
key = "UPT ";
|
|
|
|
format = "{2} hours, {3} mins";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
type = "packages";
|
|
|
|
key = "PKG ";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
type = "shell";
|
|
|
|
key = "SHL ";
|
|
|
|
format = "{6} {4}";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
type = "wm";
|
|
|
|
key = "DWM ";
|
|
|
|
format = "{2} / {3}";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
type = "memory";
|
|
|
|
key = "MEM ";
|
|
|
|
format = "{} / {}";
|
|
|
|
}
|
|
|
|
{ type = "break"; }
|
|
|
|
{ type = "colors"; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|