1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-09 18:53:51 +00:00
ultima/modules/home/programs/cli/fetch/default.nix

88 lines
1.6 KiB
Nix

{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.fetch;
in
{
options = {
module.programs.cli.fetch = {
enable = mkBool;
};
};
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"; }
];
};
};
};
}