131 lines
2.9 KiB
Nix
131 lines
2.9 KiB
Nix
{ pkgs, ... }:
|
|
let
|
|
config_file = pkgs.writeText "fastfetch-config.jsonc" ''
|
|
{
|
|
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
|
"logo": {
|
|
"height": 24,
|
|
},
|
|
"modules": [
|
|
"title",
|
|
"separator",
|
|
{
|
|
"type": "os",
|
|
"key": "□ OS",
|
|
"keyColor": "yellow",
|
|
"format": "{2}"
|
|
},
|
|
{
|
|
"type": "os",
|
|
"key": "╠[]",
|
|
"keyColor": "yellow",
|
|
"format": "{2} {10} {11}"
|
|
},
|
|
{
|
|
"type": "kernel",
|
|
"key": "╠[]",
|
|
"keyColor": "yellow",
|
|
"format": "{1} {2} {4}"
|
|
},
|
|
{
|
|
"type": "initsystem",
|
|
"key": "╠[]",
|
|
"keyColor": "yellow",
|
|
"format": "{1} {3}"
|
|
},
|
|
{
|
|
"type": "packages",
|
|
"key": "╠[]",
|
|
"keyColor": "yellow",
|
|
"format": "Nix: {9} Flatpak: {14} All: {1}"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"key": "╚[]",
|
|
"keyColor": "yellow",
|
|
"format": "{1} {4}"
|
|
},
|
|
"break",
|
|
{
|
|
"type": "wm",
|
|
"key": "□ DE/WM",
|
|
"keyColor": "blue"
|
|
},
|
|
{
|
|
"type": "lm",
|
|
"key": "╠[]",
|
|
"keyColor": "blue",
|
|
"format": "{1} {2} {3}"
|
|
},
|
|
{
|
|
"type": "wmtheme",
|
|
"key": "╠[]",
|
|
"keyColor": "blue"
|
|
},
|
|
{
|
|
"type": "terminal",
|
|
"key": "╠[]",
|
|
"keyColor": "blue",
|
|
"format": "{5} {6}"
|
|
},
|
|
{
|
|
"type": "editor",
|
|
"key": "╚[]",
|
|
"keyColor": "blue",
|
|
"format": "{2} {4} ({1})"
|
|
},
|
|
"break",
|
|
{
|
|
"type": "custom",
|
|
"key": "□ PC",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "cpu",
|
|
"key": "╠[]",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "gpu",
|
|
"key": "╠[]",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "disk",
|
|
"key": "╠[]",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "memory",
|
|
"key": "╠[]",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "swap",
|
|
"key": "╠[]",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "display",
|
|
"key": "╠[]",
|
|
"keyColor": "green",
|
|
},
|
|
{
|
|
"type": "uptime",
|
|
"key": "╚[]",
|
|
"keyColor": "green",
|
|
"format": "{1}d, {2}h, {3}m, {4}s, since {6}"
|
|
}
|
|
]
|
|
}
|
|
'';
|
|
in
|
|
pkgs.symlinkJoin {
|
|
name = "fastfetch-wrapped";
|
|
paths = with pkgs; [ fastfetch ];
|
|
buildInputs = [ pkgs.makeWrapper ];
|
|
postBuild = ''
|
|
wrapProgram $out/bin/fastfetch --add-flags "-c ${config_file}"
|
|
'';
|
|
}
|