chore: custom fastfetch logo
This commit is contained in:
@@ -1,93 +0,0 @@
|
||||
{
|
||||
"modules": [
|
||||
{
|
||||
"type": "separator",
|
||||
"string": "",
|
||||
"length": 35,
|
||||
},
|
||||
{
|
||||
"type": "title",
|
||||
"format": "Hardware Information",
|
||||
},
|
||||
{
|
||||
"type": "cpu",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "memory",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "display",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "separator",
|
||||
},
|
||||
{
|
||||
"type": "title",
|
||||
"format": "Software Information",
|
||||
},
|
||||
{
|
||||
"type": "os",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "kernel",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "terminal",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "packages",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "terminalfont",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "separator",
|
||||
},
|
||||
{
|
||||
"type": "title",
|
||||
"format": "Network Information",
|
||||
},
|
||||
{
|
||||
"type": "publicip",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "localip",
|
||||
"key": " ",
|
||||
},
|
||||
{
|
||||
"type": "separator",
|
||||
},
|
||||
{
|
||||
"type": "custom",
|
||||
"format": " {#white} {#red} {#green} {#yellow} {#blue} {#magenta} {#cyan} {#white}\n",
|
||||
},
|
||||
],
|
||||
"display": {
|
||||
"separator": " ",
|
||||
"key": {
|
||||
"width": 7,
|
||||
},
|
||||
"color": {
|
||||
"keys": "yellow",
|
||||
"title": "blue",
|
||||
},
|
||||
},
|
||||
"settings": {
|
||||
"kernelFormat": "minimal",
|
||||
"memoryUnit": "gib",
|
||||
"temperatureUnit": "celsius",
|
||||
"publicIpTimeout": 2000,
|
||||
"publicIpHost": "http://ident.me",
|
||||
"diskUnit": "gib",
|
||||
"showDisks": ["/"],
|
||||
},
|
||||
}
|
||||
99
modules/home/programs/terminal/bash/config/fastfetch.nix
Executable file
99
modules/home/programs/terminal/bash/config/fastfetch.nix
Executable file
@@ -0,0 +1,99 @@
|
||||
{ cfg }:
|
||||
builtins.toJSON (
|
||||
{
|
||||
modules = [
|
||||
{
|
||||
type = "separator";
|
||||
string = "";
|
||||
length = 35;
|
||||
}
|
||||
{
|
||||
type = "title";
|
||||
format = "Hardware Information";
|
||||
}
|
||||
{
|
||||
type = "cpu";
|
||||
key = " ";
|
||||
}
|
||||
{
|
||||
type = "memory";
|
||||
key = " ";
|
||||
}
|
||||
{
|
||||
type = "display";
|
||||
key = " ";
|
||||
}
|
||||
{ type = "separator"; }
|
||||
{
|
||||
type = "title";
|
||||
format = "Software Information";
|
||||
}
|
||||
{
|
||||
type = "os";
|
||||
key = " ";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
key = " ";
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
key = " ";
|
||||
}
|
||||
{
|
||||
type = "packages";
|
||||
key = " ";
|
||||
}
|
||||
{
|
||||
type = "terminalfont";
|
||||
key = " ";
|
||||
}
|
||||
{ type = "separator"; }
|
||||
{
|
||||
type = "title";
|
||||
format = "Network Information";
|
||||
}
|
||||
{
|
||||
type = "publicip";
|
||||
key = " ";
|
||||
}
|
||||
{
|
||||
type = "localip";
|
||||
key = " ";
|
||||
}
|
||||
{ type = "separator"; }
|
||||
{
|
||||
type = "custom";
|
||||
format = " {#white} {#red} {#green} {#yellow} {#blue} {#magenta} {#cyan} {#white}\n";
|
||||
}
|
||||
];
|
||||
display = {
|
||||
separator = " ";
|
||||
key.width = 7;
|
||||
color = {
|
||||
keys = "yellow";
|
||||
title = "blue";
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
kernelFormat = "minimal";
|
||||
memoryUnit = "gib";
|
||||
temperatureUnit = "celsius";
|
||||
publicIpTimeout = 2000;
|
||||
publicIpHost = "http://ident.me";
|
||||
diskUnit = "gib";
|
||||
showDisks = [ "/" ];
|
||||
};
|
||||
}
|
||||
// (
|
||||
if cfg.customFastFetchLogo != null then
|
||||
{
|
||||
logo = {
|
||||
source = cfg.customFastFetchLogo;
|
||||
type = "file";
|
||||
};
|
||||
}
|
||||
else
|
||||
{ }
|
||||
)
|
||||
)
|
||||
@@ -5,13 +5,16 @@
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf optionalAttrs;
|
||||
inherit (lib.${namespace}) mkOpt;
|
||||
inherit (lib) mkEnableOption mkIf optionalAttrs;
|
||||
inherit (pkgs.stdenv) isLinux isDarwin;
|
||||
|
||||
cfg = config.${namespace}.programs.terminal.bash;
|
||||
in
|
||||
{
|
||||
options.${namespace}.programs.terminal.bash = {
|
||||
enable = lib.mkEnableOption "bash";
|
||||
options.${namespace}.programs.terminal.bash = with lib.types; {
|
||||
enable = mkEnableOption "bash";
|
||||
customFastFetchLogo = mkOpt (nullOr path) null "custom fast fetch logo path";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
@@ -76,7 +79,7 @@ in
|
||||
nerd-fonts.meslo-lg
|
||||
];
|
||||
|
||||
home.file.".config/fastfetch/config.jsonc".text = builtins.readFile ./config/fastfetch.jsonc;
|
||||
home.file.".config/fastfetch/config.jsonc".text = import ./config/fastfetch.nix { inherit cfg; };
|
||||
home.file.".sqliterc".text = builtins.readFile ./config/.sqliterc;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user